Link to home
Create AccountLog in
Avatar of sjsimpson2000
sjsimpson2000Flag for United States of America

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:
<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>

Open in new window


that is executed with the URL like this:
<a href="#" onClick="return popitup('http://www.mypage.com')">Click Here!</a>

Open in new window


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
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of sjsimpson2000

ASKER

PERFECT!  Thank you!