FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Demand script on clicking link !





salman_500
welll the topic says it all...but... what i want to know is that how do i do this that when a link is clicked.... it calls upon a funtion ...

like when a link is clicked it calls a function and activates it before proceeding to the destination....

thnx...
hexkid
salman_500 wrote:
when a link is clicked it calls a function and activates it before proceeding to the destination....

Wrong forum; try Html, CSS and Javascript.
vignesh_natraj
use on onclick attribute for example
Code:
<a href="www.mysite.com" onclick="return function();">fsdf</a>

i think that would do
salman_500
vignesh_natraj wrote:
use on onclick attribute for example
Code:
<a href="www.mysite.com" onclick="return function();">fsdf</a>

i think that would do

it doesnt seem to work or me..... Confused
vignesh_natraj
else try <a onclick="function_name();">where function_name is a function name.
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.