How to let menu item execute javascript in 3.2?

General questions relating to Joomla! 3.x.

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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
shenkwen
Joomla! Intern
Joomla! Intern
Posts: 96
Joined: Mon Sep 12, 2011 10:39 pm

How to let menu item execute javascript in 3.2?

Post by shenkwen » Sun Dec 01, 2013 2:08 pm

Before 3.2, I can set the menu item type to "external link" and then set the link as "javascript:function()", and when clicked, the menu item will call the javascript function. But after I upgraded to 3.2, when I did the same thing and tried to save the menu item, it said "save not permitted".
Did 3.2 block this usage? If yes, how do I get my JS function executed by a menu item?

Locked

Return to “General Questions/New to Joomla! 3.x”