all new popus should use the same (only one) popup window ?

  • Thread starter Thread starter Kaushal
  • Start date Start date
K

Kaushal

Hello all,

I need to display only one pop-up window no matter how many links i
click.

to explain it a little better:

assume that i have 5 links on a page. the current behaviour open 5
popup windows when i click on those 5 links.
what i want is, say the user clicks on a link(say link1) , a popup
window should appear with contents specific to link1. now when the user
clicks another link(say link2) the same popup window should stay but
the contents should change specific to the link2.

can anyone help ?

kaushal
 
Try this - in IE go to Tools...Internet Options...Advanced tab, Browsing
section, and check the box by "Reuse windows for launching shortcuts", click
Apply, click Okay. Now, this won't work for all links as some web page
authors can code links to open in new windows (of a certain size, placement,
and with or without toolbars, etc.) no matter what.
 
i need to do it programatically.


Jon said:
Try this - in IE go to Tools...Internet Options...Advanced tab, Browsing
section, and check the box by "Reuse windows for launching shortcuts", click
Apply, click Okay. Now, this won't work for all links as some web page
authors can code links to open in new windows (of a certain size, placement,
and with or without toolbars, etc.) no matter what.

--

Jon R. Kennedy MS MVP/IE
Charlotte, NC USA
(e-mail address removed)
 
I found the way to do it.

what I had was <a href="link" target="_blank"></a>

instead I used <a href="link" target="newWindow"></a>

and now all the popUps are opening in just one popUp window.

P.S. you can use any name for the target attribute except _blank.

Kaushal
 
Back
Top