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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open popup window

Status
Not open for further replies.

TyzA

Programmer
Jan 7, 2002
86
BE
Hi,

When I use the following line to open a popup window:
<a href=&quot;javascript:window.open('popup_basicInfo.html','popupWindow','width=650,height=525')&quot;>test</a>

It will open my popup widow, but the page where I clicked the link will also go to another page with this content:
[object]

What should I do, so the page where I clicked the link will stay where it is.

Thanks for all you help.

Tijs
 
Hi again,

I've found something, so it works now.

But something else than:

In a popup window I need to open another popup window.
When I do this now, the new popup window opens in the existing one.

I do it like this (this code is in the Existing popup window):
(in top of HTML)
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
function WindowOpen(strURL,strName,strProps){
window.open(strURL,strName,strProps);
}
</SCRIPT>

(link HTML)
<a class=&quot;oceanBlue&quot; href=&quot;javascript:WindowOpen('popup_allInfo.html?product=Talk120','popupWindow','width=707,height=495')&quot;>
Talk 120
</a>


Thanks for your tips,

T.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top