Below is a table comparing some of the key object properties from several major browsers. This is the information that was reported by the browser when it was queried using a "for" loop to cycle through each of the properties associated with a particular object.
IE5.5 / Win98 | IE6 / Win2k | NN6.2 / Win2k |
---|---|---|
Location Object | ||
hostname = href = file:///C:/objects.html host = hash = port = pathname = /C:\objects.html search = protocol = file: |
hostname = href = file:///C:/www/ca276/week5/browser.html host = hash = port = pathname = /C:\www\ca276\week5\browser.html search = protocol = file: |
hash = host = hostname = href = file:///C:/www/ca276/week5/BROWSE~1.HTM pathname = /C:/www/ca276/week5/BROWSE~1.HTM port = protocol = file: search = replace = function replace() { [native code] } assign = function assign() { [native code] } toString = function toString() { [native code] } reload = function reload() { [native code] } |
History Object | ||
length = 1 | length = 1 | length = 1 |
Document Object | ||
namespaces = [object] lastModified = 02/17/2002 22:16:22 onmousedown = null URLUnencoded = file://C:\objects.html fileCreatedDate = 02/17/2002 onbeforeeditfocus = null bgColor = #ffffff oncontextmenu = null onrowexit = null embeds = [object] scripts = [object] mimeType = HTML Document alinkColor = #0000ff onmousemove = null onselectstart = null oncontrolselect = null body = [object] protocol = File Protocol onkeypress = null onrowenter = null vlinkColor = #606420 URL = file://C:\objects.html onreadystatechange = null applets = [object] domain = fileModifiedDate = 02/17/2002 onmouseover = null dir = media = defaultCharset = windows-1252 plugins = [object] ondragstart = null oncellchange = null cookie = documentElement = [object] ondatasetcomplete = null nameProp = Untitled referrer = onrowsdelete = null onerrorupdate = null onselectionchange = null ondblclick = null onkeyup = null location = file:///C:/objects.html forms = [object] title = Untitled onrowsinserted = null onmouseup = null onkeydown = null fgColor = #000000 ondatasetchanged = null onmouseout = null parentWindow = [object] fileUpdatedDate = onpropertychange = null onstop = null onhelp = null linkColor = #0000ff images = [object] readyState = interactive frames = [object] all = [object] onclick = null childNodes = [object] anchors = [object] selection = [object] onbeforeupdate = null security = This type of document does not have a security certificate. fileSize = 913 ondataavailable = null styleSheets = [object] activeElement = null links = [object] onafterupdate = null |
namespaces = [object] lastModified = 02/13/2002 18:11:48 parentNode = null nodeType = 9 fileCreatedDate = 02/13/2002 onbeforeeditfocus = null bgColor = #ffffff oncontextmenu = null onrowexit = null embeds = [object] scripts = [object] onactivate = null mimeType = HTML Document alinkColor = #0000ff onmousemove = null onselectstart = null oncontrolselect = null body = [object] protocol = File Protocol onkeypress = null onrowenter = null onmousedown = null vlinkColor = #800080 URL = file://C:\www\ca276\week5\browser.html onreadystatechange = null doctype = null onbeforedeactivate = null applets = [object] fileModifiedDate = 02/13/2002 onmouseover = null dir = media = defaultCharset = windows-1252 firstChild = [object] plugins = [object] onafterupdate = null ondragstart = null oncellchange = null cookie = documentElement = [object] nextSibling = null nameProp = Untitled referrer = ondatasetcomplete = null onmousewheel = null onerrorupdate = null onselectionchange = null lastChild = [object] ondblclick = null onkeyup = null location = file:///C:/www/ca276/week5/browser.html forms = [object] title = Untitled onrowsinserted = null previousSibling = null compatMode = BackCompat onmouseup = null onkeydown = null onrowsdelete = null onfocusout = null fgColor = #000000 ondatasetchanged = null onmouseout = null parentWindow = [object] nodeName = #document onpropertychange = null onstop = null onhelp = null linkColor = #0000ff onbeforeactivate = null images = [object] readyState = interactive frames = [object] all = [object] onbeforeupdate = null onclick = null childNodes = [object] onfocusin = null anchors = [object] selection = [object] fileUpdatedDate = domain = security = This type of document does not have a security certificate. fileSize = 1081 ownerDocument = null ondataavailable = null styleSheets = [object] nodeValue = null attributes = null activeElement = null implementation = [object] links = [object] URLUnencoded = file://C:\www\ca276\week5\browser.html ondeactivate = null |
characterSet = ISO-8859-1 write = function write() { [native code] } title = Untitled nodeName = #document nodeValue = nodeType = 9 parentNode = null childNodes = [object NodeList] firstChild = [object DocumentType] lastChild = [object HTMLHtmlElement] previousSibling = null nextSibling = null attributes = null ownerDocument = null insertBefore = function insertBefore() { [native code] } replaceChild = function replaceChild() { [native code] } removeChild = function removeChild() { [native code] } appendChild = function appendChild() { [native code] } hasChildNodes = function hasChildNodes() { [native code] } cloneNode = function cloneNode() { [native code] } normalize = function normalize() { [native code] } isSupported = function isSupported() { [native code] } namespaceURI = prefix = localName = hasAttributes = function hasAttributes() { [native code] } doctype = [object DocumentType] implementation = [object DOMImplementation] documentElement = [object HTMLHtmlElement] createElement = function createElement() { [native code] } createDocumentFragment = function createDocumentFragment() { [native code] } createTextNode = function createTextNode() { [native code] } createComment = function createComment() { [native code] } createCDATASection = function createCDATASection() { [native code] } createProcessingInstruction = function createProcessingInstruction() { [native code] } createAttribute = function createAttribute() { [native code] } createEntityReference = function createEntityReference() { [native code] } getElementsByTagName = function getElementsByTagName() { [native code] } importNode = function importNode() { [native code] } createElementNS = function createElementNS() { [native code] } createAttributeNS = function createAttributeNS() { [native code] } getElementsByTagNameNS = function getElementsByTagNameNS() { [native code] } getElementById = function getElementById() { [native code] } ELEMENT_NODE = 1 ATTRIBUTE_NODE = 2 TEXT_NODE = 3 CDATA_SECTION_NODE = 4 ENTITY_REFERENCE_NODE = 5 ENTITY_NODE = 6 PROCESSING_INSTRUCTION_NODE = 7 COMMENT_NODE = 8 DOCUMENT_NODE = 9 DOCUMENT_TYPE_NODE = 10 DOCUMENT_FRAGMENT_NODE = 11 NOTATION_NODE = 12 referrer = domain = URL = file:///C:/www/ca276/week5/GETINF~1.HTM body = [object HTMLBodyElement] images = [object HTMLCollection] applets = [object HTMLCollection] links = [object HTMLCollection] forms = [object HTMLCollection] anchors = [object HTMLCollection] cookie = close = function close() { [native code] } getElementsByName = function getElementsByName() { [native code] } width = 984 height = 1961 alinkColor = linkColor = vlinkColor = bgColor = #ffffff fgColor = lastModified = Tuesday, February 19, 2002 11:01:24 embeds = [object HTMLCollection] getSelection = function getSelection() { [native code] } open = function open() { [native code] } writeln = function writeln() { [native code] } clear = function clear() { [native code] } captureEvents = function captureEvents() { [native code] } releaseEvents = function releaseEvents() { [native code] } routeEvent = function routeEvent() { [native code] } dir = plugins = [object PluginArray] load = function load() { [native code] } getBoxObjectFor = function getBoxObjectFor() { [native code] } setBoxObjectFor = function setBoxObjectFor() { [native code] } createEvent = function createEvent() { [native code] } styleSheets = [object StyleSheetList] defaultView = [object Window] createRange = function createRange() { [native code] } getAnonymousNodes = function getAnonymousNodes() { [native code] } getAnonymousElementByAttribute = function getAnonymousElementByAttribute() { [native code] } addBinding = function addBinding() { [native code] } removeBinding = function removeBinding() { [native code] } getBindingParent = function getBindingParent() { [native code] } loadBindingDocument = function loadBindingDocument() { [native code] } addEventListener = function addEventListener() { [native code] } removeEventListener = function removeEventListener() { [native code] } dispatchEvent = function dispatchEvent() { [native code] } |
Navigator Object | ||
appCodeName = Mozilla appName = Microsoft Internet Explorer appMinorVersion = ;Q279328; cpuClass = x86 platform = Win32 plugins = opsProfile = userProfile = systemLanguage = en-us userLanguage = en-us appVersion = 4.0 (compatible; MSIE 5.5; Windows 98) userAgent = Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) onLine = true cookieEnabled = true mimeTypes = |
appCodeName = Mozilla appName = Microsoft Internet Explorer appMinorVersion = 0 cpuClass = x86 platform = Win32 plugins = opsProfile = userProfile = systemLanguage = en-us userLanguage = en-us appVersion = 4.0 (compatible; MSIE 6.0; Windows NT 5.0) userAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) onLine = true cookieEnabled = true mimeTypes = |
appCodeName = Mozilla appName = Netscape appVersion = 5.0 (Windows; en-US) language = en-US mimeTypes = [object MimeTypeArray] platform = Win32 oscpu = Windows NT 5.0 vendor = Netscape6 vendorSub = 6.2 product = Gecko productSub = 20011019 plugins = [object PluginArray] securityPolicy = userAgent = Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 cookieEnabled = true javaEnabled = function javaEnabled() { [native code] } taintEnabled = function taintEnabled() { [native code] } preference = function preference() { [native code] } |
Screen Object | ||
top = 0 left = 0 width = 1024 height = 768 pixelDepth = 24 colorDepth = 24 availWidth = 1024 availHeight = 740 availLeft = 0 availTop = 0 |