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

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -