Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes pop up window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "pop up window" Watch "pop up window" New topic
Author

pop up window

Chitti pokala
Ranch Hand

Joined: Jan 11, 2005
Posts: 46
Hi,
I have a button on the popup window, if I click the button it should close that popup window and open a alert message. How to do it, can you please tell me..........

Thanks......
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Basic idea:

onclick="alert('blah');self.close()"

Eric
 
GeeCON Prague 2014
 
subject: pop up window