Jump to content

JavaScript object reference Error


Recommended Posts

http://www.comptechdoc.org/independent/web/cgi/javamanual/javaobjheir.htmlaccording to the web page give above JavaScript Dom object navigator have

  1. mime type object
  2. plugin object
  3. window object

but in your site in this pagehttp://www.w3schools.com/jsref/obj_navigator.asp there is no those objects under navigator object.i want know is it mistake ormy referenced above web page(http://www.comptechdoc.org/independent/web/cgi/javamanual/javaobjheir.html) is wrong

 

Edited by sw7x
Link to post
Share on other sites

The w3schools page also states there is no standard to the navigator object, so YMMV depending on the browser you are using.

Link to post
Share on other sites

I don't believe Mime Type and Plug-in are standard. As far as I know, Window doesn't belong to the navigator either, Window is the topmost DOM element in the official HTML DOM hierarchy.

Link to post
Share on other sites

The site you linked to was written in 2000. It's safe to say that things are different now.

 

The w3schools page also states there is no standard to the navigator object, so YMMV depending on the browser you are using.

 

I don't believe Mime Type and Plug-in are standard. As far as I know, Window doesn't belong to the navigator either, Window is the topmost DOM element in the official HTML DOM hierarchy.

Then what is the correct JavaScript Object Hierarchy ?

Edited by sw7x
Link to post
Share on other sites

Wikipedia has a diagram as well:http://en.wikipedia.org/wiki/Document_Object_ModelYou can also check the MDN reference:https://developer.mozilla.org/en-US/docs/DOMNote that the navigator object is a child of the Window object, not the other way around:https://developer.mozilla.org/en-US/docs/Web/API/Window.navigator

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...