Best way to call Javascript from ASPX

  • Thread starter Thread starter Jim Mitchell
  • Start date Start date
J

Jim Mitchell

It seems that I can just insert <href=# onclick:javascript:CallJava()>Go
Java</a> into the text property of a label control to call a Javasript
function.

It seems to be a very useful tool.

1) Any reason not to do it?
2) Is there a better way?

Thanks in advance.
 
Hi

onclick="javascript:blah()" is wrong just use onclick="blah()"
A reason for not using it would be if browser has scripting disabled

--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top