469,573 Members | 1,622 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,573 developers. It's quick & easy.

Each time "new popup window" on button click.

Hi,

on button click I want to open new window each time. Currently when I m click on button second time then my new window is replaced with my original window.

We can do it in hyperlink by target="_blank". But what for button ?

So, each time new popup window should be open.


My code is as following :

Dim onlineWindow As String
Dim onheightOff, onwidthOff As Integer
Dim onheightOn, onwidthOn As Integer
onheightOff = 555
onwidthOff = 565
onheightOn = 600
onwidthOn = 600
onlineWindow = "javascript : window.open(""visitor.aspx?cid=" & strChatId & """,""ChatWindow"",""toolbar=no,location=no,direct ories=no,status=yes,scrollbars=no,resizable=no,cop yhistory=no,width=" & onwidthOn & ",height=" & onheightOn & """);"

btnSubmit.Attributes.Add("onclick()", onlineWindow)
Sep 20 '06 #1
1 4390
radcaesar
759 Expert 512MB
Hi,

window.open( URL ,Name,Features,wReplace)

Use the Last Replace parameter to achieve your requirement.

Its a boolean parameter and make it as false.
Sep 20 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by William Gill | last post: by
9 posts views Thread by Mochuelo | last post: by
1 post views Thread by Giorgio | last post: by
2 posts views Thread by Kevin Frey | last post: by
14 posts views Thread by mlw | last post: by
350 posts views Thread by Lloyd Bonafide | last post: by
30 posts views Thread by Medvedev | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.