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!!
JavaScriptHTML

Avatar of undefined
Last Comment
sjsimpson2000
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of sjsimpson2000
sjsimpson2000
Flag of United States of America image

ASKER

PERFECT!  Thank you!
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo