
October 27th, 2012, 02:09 AM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 1
Time spent in forums: 13 m 18 sec
Reputation Power: 0
|
|
|
Other - Call both Url and js function
When I call a url with <a> tag, I write
<a href="URL">Link</a>
When I call a function with <a> tag, I write
<a href="javascript:MyFunction()">Function</a>
Then I would like to know how to do if I want to call both Url Link and the function at the same time.
Is it that way?
<a href="URL" onclick="MyFunction()">Link & Function</a>
Let me know. Thanks.
|