Hi there,
I'm working on an intranet site (so I'm less concerned with the whole use of pop-up thing). One form entry system spawns a pop-up window to work in. I need to spawn another pop-up for a calendar selection. When I try to open a new window, the page just loads in the exisiting window. Is it possible to open a new window from an existing pop-up?
Code:
<SCRIPT LANGUAGE="JavaScript">
var newwin;
function launchwin(winurl,winname,winfeatures)
{
//This launches a new window and then
//focuses it if window.focus() is supported.
newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0)
{
//delay a bit here because IE4 encounters errors
//when trying to focus a recently opened window
setTimeout('newwin.focus();',100);
}
}
</SCRIPT>
Link: javascript:launchwin('newpopup.htm' , 'newwindow', 'height=300,width=325,screenX=10,screenY=10,left=100,top=90,scrollbars=1');
Thanks in advance
I'm working on an intranet site (so I'm less concerned with the whole use of pop-up thing). One form entry system spawns a pop-up window to work in. I need to spawn another pop-up for a calendar selection. When I try to open a new window, the page just loads in the exisiting window. Is it possible to open a new window from an existing pop-up?
Code:
<SCRIPT LANGUAGE="JavaScript">
var newwin;
function launchwin(winurl,winname,winfeatures)
{
//This launches a new window and then
//focuses it if window.focus() is supported.
newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0)
{
//delay a bit here because IE4 encounters errors
//when trying to focus a recently opened window
setTimeout('newwin.focus();',100);
}
}
</SCRIPT>
Link: javascript:launchwin('newpopup.htm' , 'newwindow', 'height=300,width=325,screenX=10,screenY=10,left=100,top=90,scrollbars=1');
Thanks in advance