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
Post a Comment