Welcome to WebmasterWorld Guest from 184.73.81.214

Forum Moderators: open

Java in seperate file

   
5:55 am on Sep 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I have a loads of java on the site and am wanting to move it to seperate file, how do I do it?

Thanks for the help :)

6:21 am on Sep 24, 2002 (gmt 0)

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Open up Note Pad. Cut and paste your javascript into a new document. Include everything between <!-- and // -->, also include those.

Then do a save as and append the file name with the .js extension. Upload to root or wherever you wish and then call it from the <head> section of your document with this...

<script type="text/javascript" src="http://www.domain.com/file-name.js"></script>

6:29 am on Sep 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Cool.

Thanks for the help :) and quick reply :)

 

Featured Threads

Hot Threads This Week

Hot Threads This Month