vendredi 27 février 2015

How to call a javascript function from a different php file


Vote count:

0




I would like to call a javascript function (included inside a html file: index.html) from a php file (xyz.php). So, when i click on a link inside the xyz.php page, it will call the javascript function from index.html.


Something like:



echo '<a href="#" onclick="someFunction(e)"></a>';


But it somehow needs to adress index.html, where the function is located.



asked 58 secs ago







How to call a javascript function from a different php file

Aucun commentaire:

Enregistrer un commentaire