open window & close prior window

G

Guest

I have a server side button which I added an OnClick event to using
myButton.Attributes.Add("OnClick","myJavascriptFunction()")
Well, I want myJavascriptFunction to open a new window. But, I want it to
close the previuos "same" window if it was open and then open the window
again (so the .net code can get executed). The problem is that the page that
myButton sits on is refreshing, causing my javascript code to not remember
the window it had already opened.

I read something about a hidden frame for pulling this off but haven't
totally understood how to do this? Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top