Re: document.domain in IE5

by "Srinivasan Ramakrishnan" <srinivar(at)md3.vsnl.net.in>

 Date:  Sun, 2 Apr 2000 11:50:10 +0530
 To:  "Cyanide _7" <leo7278(at)hotmail.com>,
<hwg-languages(at)hwg.org>
 References:  hotmail
  todo: View Thread, Original
Here's a script I wrote quite sometime back to test an object's properties.

I tried it on IE5 with document object, I didn't get any document.domain,
neither did my browser crash.

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
j = 0
samp = "document" // Your object here!

objWin =
window.open("","","top=50,left=50,width=600,height=400,scrollbars=1")
doc = objWin.document
doc.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0
Transitional//EN\">\n<html>\n<head>\n<title>"+samp +"
Objects"+"</title>\n</head>\n<body bgcolor=\"#000000\" text=\"#c0c0c0\">\n")
for (var i in eval(samp)){
++j
doc.write(j+" ) "+ samp+"."+i+" =>
".fontcolor("gold")+eval(samp+"."+i)+"<br>\n")
}

doc.write("</body></html>")

// -->
</SCRIPT>


Check for wrapped syntax, and here's the output for the doucument &
navigator objects:

1 ) document.activeElement => null
2 ) document.alinkColor => #0000ff
3 ) document.all => [object]
4 ) document.anchors => [object]
5 ) document.applets => [object]
6 ) document.bgColor => #000000
7 ) document.body => [object]
8 ) document.childNodes => [object]
9 ) document.cookie =>
10 ) document.defaultCharset => windows-1252
11 ) document.dir =>
12 ) document.documentElement => [object]


1 ) navigator.appCodeName => Mozilla
2 ) navigator.appMinorVersion => ;q240308;
3 ) navigator.appName => Microsoft Internet Explorer
4 ) navigator.appVersion => 4.0 (compatible; MSIE 5.0; Windows 95; DigExt)
5 ) navigator.cookieEnabled => true
6 ) navigator.cpuClass => x86
7 ) navigator.mimeTypes =>
8 ) navigator.onLine => true
9 ) navigator.opsProfile =>
10 ) navigator.platform => Win32
11 ) navigator.plugins =>
12 ) navigator.systemLanguage => en-us
13 ) navigator.userAgent => Mozilla/4.0 (compatible; MSIE 5.0; Windows 95;
DigExt)
14 ) navigator.userLanguage => en-us
15 ) navigator.userProfile =>

Cheers,
-Srini

----- Original Message -----
From: Cyanide _7 <leo7278(at)hotmail.com>
To: <hwg-languages(at)hwg.org>
Sent: Saturday, April 01, 2000 5:43 PM
Subject: document.domain in IE5


| does anyone know exactlly what document.domain is in IE5? i had a script
| that ran through the properties of the domain, but crashed when it reached
| this property. the problem was that the type of the property was "unknown"
| and could not concatenate with a string. i tried the + operator, toString
| method, and the new String constructor, but having an unknown data type
just
| doesn't seem to work here. any input as to whats going on here? -
Cyanide_7
| ______________________________________________________
| Get Your Private, Free Email at http://www.hotmail.com
|
|

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA