Scripts placed in HTML modules and other locations are removed after saving or do not run.
DNN installations, By default have the option "Remove scripts" active, which will truncate any scripts placed in modules. This is active by default as a security measure.
- Log in as a host user for the site.
- Go the the host menu.
- Click on HTML editor manager
- Once in the editor manager, click on everyone
- Then, uncheck the Remove scripts option.