html - How to call a function from another page client side JavaScript -
i need call function page in order update point counter online game. of yet, can't figure out how clientside. needs done clientside, game downloaded browser-based application. i'm hosting website using macos server, , can use jquery, prefer pure js.
if understand question correctly. why not remove function 1 page , place in external js file. then, when page needs function, place external js file in a
<script type="text/javascript" src="/path/to/file/name.js"></script>
tag load page needs it.
Comments
Post a Comment