html - Linking to javascript opens code instead of actual program -


this might simple question many of appreciated

<li><a href="rpsgame.js" onclick="myjsfunc();">rpsgame</a></li> 

i trying link tab cool simple game made on javascript, opening in code instead of actual program

my program name rpsgame.js

why happening ? wrong did ?

thank much

p.s: i'm new here!

what need link js file using script tag.

here's how it:

<script src="rpsgame.js" type="text/javascript"></script> 

after that, when user clicks on tab, load using ajax view created above , thats it!


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -