External .js file

S

Shankut

I am trying to use an external .js file into Frontpage 2003. How do I do it,
new to Frontpage.
 
R

Ronx

In Code view, or the code pane in Split view add the tag:

<script type="text/javascript" src="pathto/script.js"></script>

where pathto is the path to the script - this may be relative from the page.
script.js is the name of the file containing then script.

If the script is in the same folder as the page, the tag becomes:

<script type="text/javascript" src="script.js"></script>


The tag may be placed anywhere in the page in code view, the location
depends on what the script does and may be in the <head> section or
somewhere in the <body> of the page..
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top