![]() |
|
|
+ Search |
![]()
|
Apr 8th, 2008 19:19
ha mo, Dave Clark, harpreet singh,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Harpreet,
The function of the browser's Maximize control button is not
within the control of Internet-based JavaScript. Some browsers do
support an event which is ultimately triggered as a result of the user
clicking that button, though. Check out what the following tells you:
function CheckWindowSize()
{
if (document.body.offsetWidth)
alert(document.body.offsetWidth + 'x' +
document.body.offsetHeight);
else
alert(window.innerWidth + 'x' + window.innerHeight);
return true;
}
window.onresize = CheckWindowSize;
window.onload = CheckWindowSize;
Then, at one time you could use the window.resizeBy() or
window.resizeTo() methods to change the window dimensions. However,
you may find that recent browser security changes may get in the way
of your efforts in this area.
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com