File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes onblur on textbox  is executing after closing the popup with X button 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 "onblur on textbox  is executing after closing the popup with X button" Watch "onblur on textbox  is executing after closing the popup with X button" New topic
Author

onblur on textbox is executing after closing the popup with X button

vijaya bharath
Ranch Hand

Joined: Jun 10, 2005
Posts: 66
Hi,


My problem is
i have validation for empty string entry in a text box for onblur event in a popup
if i place the cursor in the textbox , make no entry in textbox and click on X(close at the right corner) of popup window, its closing the popup and giving the validation alert for the textbox.

but i have to develop as it should prompt the user to enter values in textbox and it should not close the popup.

Can any one please help me regarding this,iam very new to javascript.


Regards,<br />Vijaya Bharath.<br />SCJP1.4 <br />SCWCD5.0
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can try looking into onbeforeunload.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: onblur on textbox is executing after closing the popup with X button