I need to open a fixed-sized window using javascript urgently. Can anyone give me the proper syntax for this using the Milonic menus? Any examples out there?
Thanks in advance
Using javascript to open fixed-sized new window...
Re: Using javascript to open fixed-sized new window...
I figured it out from another post after all. Nevermind.aquaverse wrote:I need to open a fixed-sized window using javascript urgently. Can anyone give me the proper syntax for this using the Milonic menus? Any examples out there?
Thanks in advance
This is maybe what he´s looking for
Code: Select all
$memmenu .= "aI(\"text=$lang[banu2u];clickfunction=Popup('u2u.php', 'Window', 700, 450);\");\n";
Popup function
Code: Select all
function Popup(url, window_name, window_width, window_height) {
settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=yes,"+
"resizable=yes,width="+window_width+",height="+window_height;
NewWindow=window.open(url,window_name,settings);
}
Cheers[/code]