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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two javascript in one textfiled

Status
Not open for further replies.

liteon

Programmer
Jan 7, 2003
11
0
0
DE
If I have two JavaScript function (oneX and twoY). What is the proper syntax to run them on a single TextField?, <input onBlur=&quot;oneX(this)&quot; onBlur=&quot;twoY(this)&quot;> does not work.

Thanks.
 
add a ; between all functions in the event
<input onBlur=&quot;oneX(this); twoY(this)&quot;>
---------------------------------------
{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top