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

closing a popup with a button opening another page??

Status
Not open for further replies.

mattyod

Technical User
Mar 21, 2001
2
NL
maybye I'm just going overboard here but I'm hoping someone can help me. It goes like this.

I have a flash page which opens a pop up window with the listbot subscribe button in it. The problem was that when you then submited to listbot it opened the listbot page inside my little popup. So I thought I'd be clever and make the link open a new page and add an onclick="self_close()". like this..

<form method=&quot;post&quot; action=&quot; target=&quot;_blank&quot; onClick=&quot;self.close()&quot;>

However as I'm sure you have already realised this causes a bit of a problem. Now when I click into the form to enter an email address the popup closes. Is there a way round this - for example a command like onrelease which you have in Flash or perhaps to have the cursor already placed into the form - not as good but would do.

Is this possible - can anyone help me please?
 
try with onSubmit instead of onClick ;-)

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top