Click to See Complete Forum and Search --> : Open New Browser Window


ken_walker_jr
10-13-2003, 11:44 AM
I need to open a new browser window, and direct it to a perl script. Kinda like a pop-up I guess. Can you help?

gil davis
10-13-2003, 12:16 PM
window.open("the perl script URL goes here");
See http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp

aoeguy
10-13-2003, 01:11 PM
More detailed:
Add to the link: javascript:ScriptPopup()

<SCRIPT>
function ScriptPopup() {
var x=-30;
var y=-60;
if (document.layers) {
x=0;
y=0;
} else {
x=0;
y=0;
}
if (x<0) x=0;
if (y<0) y=0;
var w=window.open("URL HERE","archive","top="+y+",left="+x+",width=700,height=550,location=0,menubar=0,toolbar=0,status=0,resizable=0,scrollbars=1");
w.focus();
return;
}</SCRIPT>


Or to use it with other URL, example on http://gnb.clans.cc under members. Click on a member

Here is the code off the site

<script><!--
function ShowProfile(ProfileRoot) {
var win=window.open(ProfileRoot,'profile','personalbar=yes,toolbar=no,dependent=no,resizable=no,status=n o,menubar=no,locationbar=no,width=750,height=580')
win.focus();
return;
}
--></script>


Cant someone change the post to wrap to screen?? This is crap