PDA

Click to See Complete Forum and Search --> : Quick 'window.open' Question . . . [RESOLVED]


milkmood
May 11th, 2005, 09:30 AM
Syntax please, to open a browser with no address bar, no status bar, but only a menu bar.

Does the URL or location of the page I want to open go into the first '' ?

It's something like this:


'javascript:
window.open('','NewWin','toolbar=no,status=no,
width=100px,height=100px,resizable=no,scrollbars=no,
top=100px,left=200px');

BONUS QUESTION: Maybe it's possible to even reduce the menu down to only allow "PRINT" and "EXIT" to show?

Thanks,
CP

NoteMe
May 11th, 2005, 09:35 AM
I moved your thread to the "javascript" section.


ии

milkmood
May 11th, 2005, 09:41 AM
K, sorry.

Brandoe85
May 11th, 2005, 09:41 AM
Yes, the first argument is the URL. window.open() (http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html)

milkmood
May 11th, 2005, 09:43 AM
Then I want to close the window with the script...hopefully, so it's never even seen.

Is it something like :

this.close();

Thanks,
CP

Brandoe85
May 11th, 2005, 09:53 AM
window.close()

milkmood
May 11th, 2005, 09:57 AM
Got it!

Thanks,
CP