open new window from submenu with no address bar, menu bar

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
prasanna
Beginner
Beginner
Posts: 2
Joined: Fri Jul 12, 2002 9:34 am

open new window from submenu with no address bar, menu bar

Post by prasanna »

Hi,

Anyone pls help to sort this problem i would like to open a new window from a submenu with no address bar how to do that. I tried with this coding

Code: Select all

,"Telerate-on-Internet","../product/TelerateOntheInternet/TelerateonInternet2.htm" target="pdf" onclick="msgwindow=window.open('','pdf','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=900,height=600');msgwindow.focus()",,,,1
thanks for ur valuable time.

cheers

prasanna[/b][/color]
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Here's a sample function to open a window, this will need to be changed to suit your needs

Code: Select all

function MM_openwin(MM_file,MM_height,MM_width)
{
	MM_config=""
	MM_config+="toolbar=no,";
	MM_config+="location=no,"
	MM_config+="directories=no,";
	MM_config+="status=yes,"
	MM_config+="menubar=no," //Not on Apple Mac for obvious reasons
	MM_config+="scrollbars=yes,"
	MM_config+="resizable=yes," //Mac windows are always resizable
	MM_config+="copyhistory=no,"
	MM_config+="width="+MM_width+","
	MM_config+="height="+MM_height
	var MM_win=open(MM_file,"",MM_config);
	MM_win.focus();
}

And here is a sample meu item to call the above function

Code: Select all

,"Sample","javascript:MM_openwin(\"http://www.google.com\",300,400);",,,1
Note the use of escaped double quotes for the URL.

Cheers
-- Andy
Post Reply