login about faq

To prove you're not a spammer, email newuser.lgqa@gmail.com with the subject "Account Request" to request an account.

Can this be done with an external JavaScript file?
Pic: http://cl.ly/image/2J3K3t050r3C

I would like to have that code in one file so I don't have to write it over and over again.

Here's an example: http://cl.ly/image/392T2B3j3n0U
Here's a video: http://cl.ly/0L1b1t3o0x1x

asked Jun 21 '13 at 05:09

synadude's gravatar image


edited Jun 21 '13 at 08:05

I'm pretty sure you can create the code in a different file (maybe in a function?) and include the file at the top of the page and use it.

answered Jun 21 '13 at 07:00

ryebread761's gravatar image


What would be the proper way to use the external file after I include it in the html file?

(Jun 21 '13 at 07:27) synadude synadude's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jun 21 '13 at 05:09

Seen: 504 times

Last updated: Jun 21 '13 at 08:05