Jorntk said:
Ok, it work now. But i got new problem.
I put the alert in a header.php where i will call the header.php everytime.
This cause the alert pop up when I click every button to view new page.
So, is there anyway to limit the alert to only pop up for one time??
Please advice. Thanx!
You only think you have it working. For starters, "self.innerWidth" returns
"undefined" on Internet Explorer, which is always less then 1024 on Internet
Explorer.
On browsers like Gecko based browsers (Netscape 7.1, Mozilla, Firefox, Camino,
Opera 7.23), where self.innerWidth actually returns typeof "number", even a
user with a 1024 x 768 desktop will be told they aren't running their browser
at 1024 x 768, because window.innerWidth is ALWAYS less then the width of the
applicable desktop (due to borders and scrollbars and any side-docked
toolbars).
Not to mention that in Netscape 7.1, Mozilla and Firefox, browsers where you
are actually able to retrieve self.innerWidth (and make an incorrect assumption
about the size of their browser based on that value), users can disable the
ability for you to move or resize their browser.
--
| Grant Wagner <
[email protected]>
* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html
* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.asp
* Netscape 6/7 DOM Reference available at:
*
http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
*
http://www.mozilla.org/docs/web-developer/upgrade_2.html