I haven't learned how to do my own javascript but I have some snips from the HTML editor I use (1Page). I'll like to insert some of them into my pages (which I know how to do) but as an external linked file. Is there an easy way to do this like the CSS is?
Glynis
0
Newbie Poster
Recommended Answers
Jump to PostSave your script in a file with a ".js" extension, for example, "myExternal.js" Do NOT put <script> tags in the file. In your HTML, you reference the file:
<SCRIPT language="JavaScript" SRC="myExternal.js"></SCRIPT>
Jump to PostWhether or not you need "type=" depends on which doctype/HTML version you're using. Firefox parses external JavaScript just fine, and always has. What do you mean by "format" when you say you don't know how to format the JavaScript file? It's a file that contains JavaScript, pure and simple.
All 7 Replies
tgreer
189
Made Her Cry
Team Colleague
Glynis
0
Newbie Poster
tgreer
189
Made Her Cry
Team Colleague
Glynis
0
Newbie Poster
tgreer
189
Made Her Cry
Team Colleague
Glynis
0
Newbie Poster
tgreer
189
Made Her Cry
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.