This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
On blur to be automactially called
disable close butto
check valid username
onblur errors in Netscape
disable CLOSE (X) button on a popup window