How to add javascript to Joomla 2.5 articles
Written by Brad MarkleWhen 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>. |
Like this Article?
Tweet
Category
102: Writing Articles in Joomla 2.5
Writing Articles in Joomla 2.5
Latest Questions
If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Recent QuestionsNeed more Help?
Search
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: | support@InMotionHosting.com |
|---|---|---|---|
| Call: | 888-321-HOST (4678) | Ticket: | Submit a Support Ticket |

