How To Click A Button In A Popup?

Can anyone tell me an easy way to close a popup window in html?

  • I am a web designer trying to put together a basic site. I've got most of it working but in one part there is a popup window with a "close window" button. Can anyone tell me an easy way to make this work, so that when you click on it the popup window closes. I'm much more of a designer than a programmer so a solution which is'nt too complicated would be great. Thanks

  • Answer:

    on the button, place this tag: onclick="self.close();" So, if you had a button: <input type="button" value="Close Me" onclick="self.close();" /> EDIT: This only works in IE, here is something I found online to do a close in Firefox: http://www.interwebby.com/blog/2006/02/04/3/

nothingn... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.