File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
vijaya bharath
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try looking into onbeforeunload.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic