un1k,
Oh, sooooo close! Sorry, but "window.resizeto()" does not provide that functionality. If you need to make the toolbars disappear then you may need to rethink your design to possibly incorporate the functions of "window.open()" instead.
IMHO, unless you are dealing with an Intranet situation, I agree with
tviman on this one. Most users will simply avoid your site if you change the size their MAIN window when they visit. A
slightly less intrusive thing you could do would be to use the "window.open()" function in the "body onload" event:
Code:
<body onload="window.open('index.html','NewWindow',' width=500,height=400,resizable=no,scrollbars=no,menu=no,status=no');">
This would open a NEW window which you would have more control over. Many users would also find this annoying, but you'll be more likely to get away with this than resizing their main window.
Of course, all bets are off when it comes to an intranet. If your boss wants it a certain way, and employees will NEED to use it, then they won't have a choice.
-Ron
P.S. Of course there will be many users out there who won't be able to use your site if you use javascript. They include people who turn off javascript, and users of older browsers and text browsers (for visually impaired). Also, search engine spiders won't crawl javascript. So, if your site uses all javascript navigation, then you won't get crawled. This might cause you to not be highly ranked or even listed at all on some search engines. So, don't exclusively use javascript navigation. Always have some other way to navigate (even if it's only for backup)!
We all play from the same deck of cards, it's how we play the hand we are dealt which makes us who we are. -Me
murof siht edisni kcuts m'I - PLEH