Hi,
I know this may sound unnecessary, but I want to refresh the page anytime the user resize's their browser window.
I have some code which I found that get's the browser's width dimension.
function getBrowserWidth()
{
if (window.innerWidth)
{
return window.innerWidth;
}
else if (document.documentElement && document.documentElement.clientWidth != 0)
{
return document.documentElement.clientWidth;
}
else if (document.body)
{
return document.body.clientWidth;
}
return 0;
};
How can i create a loop to check between say current value and a new value to then see if the browser's window has changed?
Any help, please?
Jez.