Jump to content

JavaScript object reference Error


sw7x

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 comment
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 comment
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 comment
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 comment
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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...