Javascript code doesn't work #4122
-
Good afternoon people I'm trying to use a simple javascript function to show an alert on the screen, but it's not working/rendering. The script is this:
What do I have to do to run any javascript function on the page? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You need to insert your javascript functions inside the Page Properties > Scripts tab. You will also need to disable HTML Sanitization under Admin > Rendering > HTML > Security in order for your onclick property to be kept. |
Beta Was this translation helpful? Give feedback.
You need to insert your javascript functions inside the Page Properties > Scripts tab. You will also need to disable HTML Sanitization under Admin > Rendering > HTML > Security in order for your onclick property to be kept.