sjsimpson2000
asked on
Is it possible to open a pop-up window from within a pop-up window?
Hi, I have an html file with this script:
that is executed with the URL like this:
When I put the same code in the html file of the window that is popped up I can only get it to display in the same popped up window, or a new one.
How can get a link in the popped up window to open another pop-up?
Thanks!!
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=600,width=950,scrollbars=Yes,toolbar=No,ScreenX=500,ScreenY=250');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
that is executed with the URL like this:
<a href="#" onClick="return popitup('http://www.mypage.com')">Click Here!</a>
When I put the same code in the html file of the window that is popped up I can only get it to display in the same popped up window, or a new one.
How can get a link in the popped up window to open another pop-up?
Thanks!!
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER