Java script

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
nancyjoycestd
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Sun Aug 25, 2013 4:02 pm

Java script

Post by nancyjoycestd » Wed Aug 03, 2016 10:32 pm

I need to insert a Java script into the code for my landing page. The vendor instructions are to place anywhere on the page between <body> tags. Having trouble since this article has no <body> tags when I try to edit the code.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17443
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Java script

Post by toivo » Wed Aug 03, 2016 11:39 pm

If you manage include the script somewhere in an article, it is going to be between the <body> tags. Those tags are added by the functions of the template before the article is rendered.

However, you may want to modify your template instead or present your javascript in a custom module. This tutorial shows you how: https://docs.joomla.org/Adding_JavaScript
Toivo Talikka, Global Moderator


Locked

Return to “General Questions/New to Joomla! 2.5”