Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to open a window pop up in other window pop up??

Status
Not open for further replies.

pichi

Programmer
Nov 12, 2000
156
EC
Hi,
I don´t know how to open a window pop up in one window pop up that i have already open!!
what i am trying to say is that i have a web page, i click a button and i open a window pop up (with window.open())
but in that window pop up,, i have another button and i want to open another window pop up when i click on that button!!!(using window.open() if posible)
I hope i make myself clear!!!!
thanks!!!
 
well, copy/paste the code of the main page in the pop up one -> i mean, if you want them to do the same you only have to reuse the code ;-)
it does work !
 
Hi, iza, thanks for the advice, but let me explain something i forgot to do, i've already copy/paste de code from de main window!!,, but when i click en the button (at the window pop up) it opens the page in the same window, it didn't open another window pop up!!
hope you can help me!! or somebody else!!

thanks!!
 
pichi,

here is what i did and it open a new window everytime you click on the button

main.html
---------
<html><body>
<form>
<input type=&quot;button&quot; onclick=window.open(&quot;new.html&quot;) value=&quot;open&quot;>
</form>
<body></html>

and in new.html i just copied the same code in main.html

hope this helps


Chiu Chan
cchan@gefmus.com
 
&quot;but when i click en the button (at the window pop up) it opens the page in the same window, it didn't open another window pop up!!&quot;
--> i guess you copied/pasted too much then ;]]
you have to change at least the name of the opened window, and/or the url it opens
try it and if it's still not good post your code ??
 
thanks both of you,,
iza you are right, i copied too much code,, y put the same name for the window, then i realize that and change the name and solved the problem!!

thanks again!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top