homepage Welcome to WebmasterWorld Guest from 54.166.255.168
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
Java in seperate file
NeedScripts

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 133 posted 5:55 am on Sep 24, 2002 (gmt 0)

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 :)

 

pageoneresults

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



 
Msg#: 133 posted 6:21 am on Sep 24, 2002 (gmt 0)

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>

NeedScripts

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 133 posted 6:29 am on Sep 24, 2002 (gmt 0)

Cool.

Thanks for the help :) and quick reply :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved