InMotion Hosting Support Center

When you're writing an article in Joomla 2.5 and save the changes, there are various elements that Joomla will naturally remove from your content. For example, if you've added any javascript to your article, Joomla will remove your script tags. This is a security measure taken by Joomla, but when you really need to use javascript this does cause headaches for many users.

Just like javascript, Joomla removes iframes from code as well. In a previous article we showed you how to allow iframes in your html code, and allowing javascript code follows the same steps.

Question: How do I prevent Joomla from removing my javascript code?
Answer: Review our article on allowing iframes in your articles. Follow the steps in the article, but substitute <iframe> with <script>.
Continued Education in Course 102: Writing Articles in Joomla 2.5
You are viewing Section 20: How to add javascript to Joomla 2.5 articles
Section 19: How to add an IFRAME to a Joomla 2.5 article
Section 21: How to embed a PDF in a Joomla 2.5 Article

Joomla Community Google+ Hangout #3

June 3rd, 2014

Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!

Click here to watch!

Support Center Login

Social Media Login

Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-06-18 7:32 am

How to use jquery in joomla?

when i type below code i got this error "ReferenceError: jQuery is not defined".

<script type="text/javascript">     jQuery(.'btnLike').click(function() {         var abc = 'Like';     });</script>


Please let me know the solution of this error.

11,186 Points
2014-06-18 8:35 am
This is because jQuery is not included within your code. You will need to download jQuery and include it within your file.
n/a Points
2014-07-16 12:04 pm

Hi JeffMa,

Thanks for your help.

I have included this js file and now it works fine.

Thanks again.

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

3 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!