The navigator obiect belongs to the "window" object.
- navigator contains information about the browser application.
This object has some properties and methods that can be used with syntax:

navigator.property_name
navigator.methodName()

Properties and Methods of navigator object


- Many of the navigator object methods have been deprecated in the newer JS version, or are not standard.
A method of the navigator object is:

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which HTML element can be used to embed a SWF flash content?
<object> <div> <script>
<object type="application/x-shockwave-flash" data="file.swf" width="500" height="250">
 <param name="src" value="file.swf" />
 Your browser not support SWF.
</object>
Which CSS pseudo-class adds a style to an input form field that has keyboard input focus?
:active :focus :hover
input:focus {
  background-color: #88fe88;
}
Click on the instruction which converts a JSON string into a JavaScript object.
JSON.stringify(javascript_object) object.toString() JSON.parse(json_string)
var jsnstr = '{"url": "http://coursesweb.net/", "title": "Web Development Courses"}';
var obj = JSON.parse(jsnstr);
alert(obj.url);
Indicate the PHP function which can be used to create or write a file on server.
fopen() file_put_contents() file_get_contents()
if (file_put_contents("file.txt", "content")) echo "The file was created";
else echo "The file can not be created";
navigator object

Last accessed pages

  1. Insert, Select and Update NULL value in MySQL (47133)
  2. Add data from form in text file in JSON format (11588)
  3. PHP getElementById and getElementsByTagName (33744)
  4. Add Text in Canvas from Input text field, as it is Typed (6386)
  5. SHA512 Encrypt hash in JavaScript (14622)

Popular pages this month

  1. Making DIV Contents Scroll Horizontally, with multiple Div`s inside (1199)
  2. Contact page - CoursesWeb (1170)
  3. Tabs effect with CSS (1165)
  4. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (501)
  5. PHP getElementById and getElementsByTagName (365)