rosenjcb Posted March 23, 2014 Share Posted March 23, 2014 So I have this code:http://pastebin.com/1AFjYcSq As you see, it's just an html file with some javascript code embedded into it. It works fine, but I obviously can't have an entire game's code just smashed into the html5 file. Would anyone mind explaining to me, as if I'm a complete idiot, how to link a javascript file in html5 and have it call the appropriate calls? Thanks! Quote Link to comment Share on other sites More sharing options...
user123 Posted March 31, 2014 Share Posted March 31, 2014 Really simple, just put "<script src="path/to/file.js"></script>" in your code Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.