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!

How call JavaScript Code from simple Text?

Status
Not open for further replies.

yash

Programmer
Apr 9, 2001
46
IN
Hi,
Can anyone HELP out from my problem??
I need to call some JavaScript Code from some text in HTML file.

Like

HELP?

If user click on this it should execute some Javasript.
"Help?" text should display like link means it should change mouse cursor to Hand when mouse goes on it..

Thanks in Advance..
 
<a href=&quot;javascript:someFunction()&quot;>Help</a>

Cannot pass arguments this way, use onClick if you need to send an arg list.

I have no idea what you mean ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top