By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,463 Members | 771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,463 IT Pros & Developers. It's quick & easy.

Best way to call Javascript from ASPX

P: n/a
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.
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
==============================
"Jim Mitchell" <ji**********@mindspring.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
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.

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.