|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
My problem is this. I've created a website for my company (www.maizeblue.com), and as required by its governing body, i am required to have viewers read a risk disclosure first before viewing anything. Therefore, i've had a popup window appear, and users simply close the window when they're done reading. Now, my boss wants me to put a button that will say "I agree to these terms and conditions". How do i make the button close the popup window? i've read that the javascript windowName.close() will do the trick. But i do not know how to incorporate it... i need help. Thank you. Willis |
|
#2
|
|||
|
|||
|
Use self.close()
In context: Button: <form> <input type="button" onclick="self.close()" value="I Agree To These Terms And Conditions"> </form> Link: <a href="javascript:self.close()">I Agree To These Terms And Conditions</a> adam |
|
#3
|
|||
|
|||
|
Thanks Adam,
Believe it or not, i found the answer out earlier today, about an hour after i posted the original plea for help. And the answer was in a combination of a previous post that you had almost 4 months ago, as well as something from htmlgoodies.com. But thank you. It works... =) Sincerely, Willis Chang |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Closing a popup window |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|