| Author |
window focus
|
somin bhuvan
Greenhorn
Joined: Jun 01, 2005
Posts: 22
|
|
Hi, A problem in javascript, There is a textarea with onblur event. Am checking for maxlength of characters which shud accept only 255 characters and not more than that. If it exceeds it will throw an error in alert box. My problem is, when i give the characters more than 255 characters and i give the focus to another window like Worpad,Notepad and if i again go to the samepage of the webpage, it throws the error says the pls enter within limit of 255 characters and if i click ok, again this alert box alerts infinite time and it doesn't get stopped. I donno how to solve this problem , how to bring focus to this window and stop the alert message after clicking ok button in that alert box. pls help me. Thanks in advance bhuvan
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
|
This is a javascript issue and not a JSF issue. Moving to HTML and Javascript...
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
you need to refocus the window basically onblur="alert('error');this.focus();" Eric
|
 |
 |
|
|
subject: window focus
|
|
|