Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

prob with netscape when using onfocus=blur

Status
Not open for further replies.

selani

Programmer
Apr 30, 2003
35
IN
Hi all,

a text box is disabled using "onfocus = blur" in netscape...

i hv found code to pass on the focus to subsequent text fields in the form on pressing ENTER key.....but there is a prob with the text field that has the prev mentioned code....b'cos as soos as focus goes to that field..it is lost due to blur()....wat i need is to identify this field and pass the focus to the next field leaving the disabled one.......can u help me out??

NOTE - all this in netscape not IE

Thank u
 
why not disable this field with "disabled" or "readonly"?


=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
readonly/disabled does not work in netscape...
 
onfocus = CallFn()


<script>
function CallFn()
{
document.FormName.NextField.focus()
}
</script>

Known is handfull, Unknown is worldfull
 
&quot;readonly/disabled does not work in netscape...&quot;

you must be using some ancient version...these are core html attributes



=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
jemminger

unfortunately a lot of users have NS4.7 still in their systems (many dont even know that there are updates)...

Known is handfull, Unknown is worldfull
 
imho we should present anyone using such an old browser with a message: &quot;your browser version is too old - please upgrade&quot;

these browsers are like rusty Pintos on the information superhighway...they're a danger to others [lol]

=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
Jemminger...

ROFLOL about the Pintos! That's Great!!!

(Course I guess that gives away our age - most will think that you're talking about horses on the freeway!)

There's always a better way...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top