Friday, February 8, 2008

Javascript 3

This function is used to get the window size or browser window size.

function resetWidth()
{
/*
w = document.documentElement.clientWidth;
h = document.documentElement.clientHeight;
*/
w = 1024;
h = 768;

//alert("w: " + w + ", h: " + h);
}

function resizeThisThing()
{
if ((w+h) > 0)
{
top.resizeTo(w, h);
/* alert("Resized to " + w + ", " + h); */
}
}
Please view here..
http://www.rit.edu/~gxs8938/rit737/finalindex.html

No comments: