How to insert Javascript on DNN page?

During the process of setting up a new DotnetNuke site, I needed to put a google adsense javascript on the page. I think there is some DNN module that you can use to do so as well. But I also needed to put another javascript block from another advertising vendor on the page as well. First I though may be I can inject the script block in HTML module content itself. Unfortunately HTML editor removes javascript from content when it gets saved. After looking around at various page setting, I found that I could put my javascript code under Header available under Module Settings > Advanced Settings section in module settings. You can see this in action at the following URL. Sections shown at top and left of the page are HTML modules that have javascript embedded in header.

Embed Javascript In Module Demo

blog comments powered by Disqus
Search
Share

Smart Phones Poll

What smart phone do you currently own?





Show Results

Month List