/*assign values for name, status and default status*/
window.name ="This is the window name";
window.status="This the window status message";
window.defaultStatus ="This is the window default status message";

//document.getElementsByTagName("h1").item(0).innerHTML='asdf'; test

/*Creates text nodes and puts them in the document*/

/*window*/
var wName = document.createTextNode(window.name);
document.getElementById("a1").appendChild(wName); 

var wDstatus = document.createTextNode(window.defaultStatus);
if(wDstatus.length == 0)
wDstatus = document.createTextNode("Not accessible with your current browser settings");
document.getElementById("a2").appendChild(wDstatus); 

var wStatus = document.createTextNode(window.status);
if(wStatus.length == 0)
wStatus = document.createTextNode("Not accessible with your current browser settings");
document.getElementById("a3").appendChild(wStatus); 

var wOpener = document.createTextNode(window.opener);
if(wOpener.length == 0)
wOpener = document.createTextNode("undefined");
document.getElementById("a4").appendChild(wOpener); 

var wParent = document.createTextNode(window.parent);
document.getElementById("a5").appendChild(wParent); 

var wTopParent = document.createTextNode(window.top);
document.getElementById("a6").appendChild(wTopParent); 

var wClosed = document.createTextNode(window.closed);
document.getElementById("a7").appendChild(wClosed); 


/*window.screen*/
var sWidth = document.createTextNode(window.screen.width);
document.getElementById("a8").appendChild(sWidth); 

var sHeight = document.createTextNode(window.screen.height);
document.getElementById("a9").appendChild(sHeight); 

var sColDepth = document.createTextNode(window.screen.colorDepth);
document.getElementById("a10").appendChild(sColDepth); 

var sAvailWidth = document.createTextNode(window.screen.availWidth);
document.getElementById("a11").appendChild(sAvailWidth); 

var sAvailHeight = document.createTextNode(window.screen.availHeight);
document.getElementById("a12").appendChild(sAvailHeight); 


/*window.navigator*/
var nUserAgent = document.createTextNode(window.navigator.userAgent);
document.getElementById("a13").appendChild(nUserAgent); 

var nAppname = document.createTextNode(window.navigator.appName);
document.getElementById("a14").appendChild(nAppname); 

var nAppCodeName = document.createTextNode(window.navigator.appCodeName);
document.getElementById("a15").appendChild(nAppCodeName); 

var nAppVersion = document.createTextNode(window.navigator.appVersion);
document.getElementById("a16").appendChild(nAppVersion); 

var nCookieEnabled = document.createTextNode(window.navigator.cookieEnabled);
document.getElementById("a17").appendChild(nCookieEnabled); 

var nPlatform = document.createTextNode(window.navigator.platform);
document.getElementById("a18").appendChild(nPlatform); 


/*window.location*/
var lHref = document.createTextNode(window.location.href);
document.getElementById("a19").appendChild(lHref); 

var lProtocol = document.createTextNode(window.location.protocol);
document.getElementById("a20").appendChild(lProtocol); 

var lHostname = document.createTextNode(window.location.hostname);
document.getElementById("a21").appendChild(lHostname); 

var lHost = document.createTextNode(window.location.host);
document.getElementById("a22").appendChild(lHost); 

var lPort = document.createTextNode(window.location.port);
document.getElementById("a23").appendChild(lPort); 

var lPathname = document.createTextNode(window.location.pathname);
document.getElementById("a24").appendChild(lPathname); 

var lHash = document.createTextNode(window.location.hash);
document.getElementById("a25").appendChild(lHash); 

var lSearch = document.createTextNode(window.location.search);
document.getElementById("a26").appendChild(lSearch); 


/*window.history*/
var hLength = document.createTextNode(window.history.length);
document.getElementById("a27").appendChild(hLength); 


/*window.document*/
var dCookie = document.createTextNode(window.document.cookie);
document.getElementById("a28").appendChild(dCookie); 

var dReferrer = document.createTextNode(window.document.referrer);
document.getElementById("a29").appendChild(dReferrer); 

var dDomain = document.createTextNode(window.document.domain);
document.getElementById("a30").appendChild(dDomain); 

var dLastModified = document.createTextNode(window.document.lastModified);
document.getElementById("a31").appendChild(dLastModified); 







