Java Script include in all pages of a frontpage website

R

Remitdlo

I have a small Java Script that I would like to insert in all the pages of
my website. Is there a global way to do this?
 
T

Thomas A. Rowe

External .js file manually linked to all page in HTML/Code view in the head section of each page.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
M

MD Websunlimited

Hi Remitdlo,

What do the pages use for layout, DWT or Shared Browsers?

If DWT and you're using a DBW then you can either have the script in the page, by adding it to the DWT directly, or by using the src
of the script tag to use an external file. I highly recommend the latter. If the DWT is not a DBW then publish it to a DBW apply the
change then publish back.

You may place the script is a common border for a shared border page or use the external file method.
 
T

Thomas A. Rowe

Note: If the script is placed in a Share Border or FP Include Page, the script must be between the
body tags, not in the head section of the page to be included, to be included in other pages.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

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