View Full Version : DHTML Close onload of 2nd page in iframe

02-21-2009, 07:26 PM
1) Script Title: DHTML Modal window v1.1

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm

3) Describe problem:

I would like the window to automatically close after a user submits their email address in a form and submits. The only thing is the form is on a 3rd party site. How do I do that?

Here is the example modal window.


I removed the close button because i only want it to close after they submit their email. The page being loaded is a random iframe of email submits.

Another question:
How can I make the window pop-up and upon submit of email, close the window and create cookie so the popup wont display again for 24hrs?