I am trying to make a JS script that shows some details and maximizes the page without the user having to press it.
So it shows a message, then it should maximize by “pressing F11”. Is this possible and also, is it possible to have no scrollbars without using frames?
@Paul_JrDec 30.2003 — #[i]Originally posted by aoeguy [/i]
[B]Isnt it possible without opening a new window?[/b][/quote] I don't believe so... [i]Originally posted by aoeguy [/i][b]
If you cant maximize it then can you RESIZE it??[/b][/quote] Yup. [code=php] <script type="text/javascript"> //<![CDATA[ function bigger() { window.resizeTo(screen.width,screen.height); } //]]> </script> [/code] Then [code=php] <input type="button" name="resizer" value="Click to resize" onclick="bigger()" /> [/code] Works for me.
@oleragDec 30.2003 — #To open a window in JS to the size of the screen... [code=php] <script type="text/javascript"> var newWin = ""; function openNewWin() { var winAtt = "menubar=1,status=1,location=1,directories=1,resizable=1," + "height=" + screen.height + ",width=" + screen.width + "top=0,left=0"; newWin = window.open("","",winAtt); } </script> [/code]
[b]Can I open the same page then close the parent window?[/b] [/quote] The same page has no parent. A new page would have a
parent but to close the parent without the child is, I believe,
not very good practice. However, in some browsers...
Call a JS function residing in the parent window that closes
itself (top.close()) could be done I suppose. To call a parent's
function, issue something like "window.opener.myFunction()".