So I have a small bit of HTML and Javascript that I want to embed in a basic page. I go to edit the page, turn off rich text editing, and paste the HTML/javascript. I save, and then the javascript portion gets deleted while the HTML stays.
Is there any reason for this?
It is worth noting that the site is maintained and run by the university, although I have full permissions.
Other people say just add a bit of php and add_jscript(), but don't say where that goes, or how to get to that file.
EDIT: So I contacted the IT department and they suggesting adding the script as a block, and then adding the block to the page. Thanks for all your help!
drupal_add_jsin theme's template file.hook_preprocess_pagein yourtemplate.phpfile and add it usingdrupal_add_js()by addingcurrent_path()condition if you want to add it on specific pages.