Java Script pop-up

  • Thread starter Thread starter IntraRELY
  • Start date Start date
I

IntraRELY

Hello,

I am having an issue with this java code for a pop-up.

window.open('clientsCreate.aspx',null,','_blank,height=350,width=750,menubar
=no,status=no,toolbar=no')

I need the ability to open several of the same page. For example, when the
link is clicked with this code the page opens fine, however, on subsequent
pages it opens in the last new window, not a truely new one.
i.e
--
1.Page 1 Hyperlink is clicked
2.clients.Create.aspx opens in a new window
3.Page 1 Hyperlink is clicked again
4. the clientsCreate.aspx is loaded into step No. 2 window.

TIA,

Steve Wofford
www.IntraRELY.com
 
You should give it a new name for each window.
In your example you're using the same window (named "_blank") each time.
 
Hi

if for any reason it does not work assign it a random name

function doIt(sPageToGo){
var d = new Date();
window.open(sPageToGo,"myWin" + d.getHours() + d.getMinutes() +
d.getSeconds(),"SPECS HERE");
}

--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
 
Back
Top