vender
Junior Member
Posts: 2
Registered: 12/7/2004
Member Is Offline
|
| posted on 12/7/2004 at 11:09 AM |
|
|
Menu - setting window.open properties
with demo5 menu you can open a new window from the menu. Is it possible to open a new window and use some of the window features i.e.
remove the toolbar
make it not resizable
choose the width and height etc...
|
|
|
olga
Administrator
Posts: 84
Registered: 11/22/2004
Member Is Offline
|
| posted on 12/7/2004 at 10:41 PM |
|
|
Menu - setting window.open properties
In this case you can use the function, which will be open a new window
with specified parameters. This function is called from the MENU_ITEMS variable:
var MENU_ITEMS = [
['Home', "javascript:popup_window('http://www.softcomplex.com')",
[ ... ]
function popup_window (urlname) {
window.open(urlname,
'_blank','toolbar=no, width=500,height=400,left=50,top=50,status=no, scrollbars=no,resizable=no');
}
|
|
|
vender
Junior Member
Posts: 2
Registered: 12/7/2004
Member Is Offline
|
| posted on 12/8/2004 at 08:27 AM |
|
|
Thanks I just got the same conclusion yesterday, as I came across it in another script I wrote ages ago.
|
|
|