hey, whats the code to resize the users browser window to a specified width and height?
hey, whats the code to resize the users browser window to a specified width and height?
Example:
Usage:Code:<script type="text/javascript"> window.resizeTo(500, 500); </script>
window.resizeTo(width, height);
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
i thought that was it. the reason i doubted it was because its not supported by the Safari browser. is there a script that works on all browsers?
No, and it can be disabled in several of those browsers that do.Originally Posted by mavrick422
Mike
you said there isn't a universal script? how would i disable safari from disabling the script?
Generally, taking control of the user's interface like that isn't very polite. It is tempting, to render a particular effect. I will even do it on occasion. However, I am happy to let Safari users render it however that browser will and other browsers (as configured), as long as the content is still accessible. If I know that the vast majority of users will get the special effect and that of the rest, 99.99% will still at least see the content, that is good enough for me.
On the other hand, if my target market was like 75% Safari users, I'd find a different approach, rather than trying to override that browser's default settings.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks