
Oktober 15, 2015 09:51 by
Kenny
How to Add JavaScript to DNN Page?
What is JavaScript?
JavaScript is a programming language used to make web pages interactive. It runs on your visitor's computer and doesn't require constant downloads from your website. JavaScript is often used to create polls and quizzes. JavaScript support is built right into all the major web browsers, including Internet Explorer, Firefox and Safari. Provided that the visitors to your site are using web browsers that support JavaScript (most do) and have JavaScript enabled (it is by default), then your JavaScript will run when they visit the page. JavaScript is an interpreted language, so no special program is required to create usable code. Any plain text editor such as Notepad (one of the Accessories that comes in Windows) is quite satisfactory for being able to write JavaScript. That said, an editor that colorizes the code to make it easier to see what is what makes it easier to find your mistakes.

Step by Step
- Navigate to a DNN page where you want to place slideshow
- Click on “Edit Page” located at right side of Admin bar and choose “Edit this page”, this will turn page to Edit mode.
- Say (you have already setup images) on top of content page, then click Modules menu in Admin bar, then click on “Add new Module”.
- Choose HTML Editor Module from the list of modules and drag it below to slide show (location of module not mandatory, but a best practice)
- Select settings from “gear” action menu of newly added module and remove value from “Module Title” and uncheck Is Sharable (this will prevent share this content across site) under Advanced Settings then click on “Update”
- Select Edit content from “pencil” action menu of new module, this will opens a word like editor.
- Choose “Basic Text Box” located in left top corner, this will show plane textbox, type relevant JavaScript code here.
- Finally choose “Raw” as Render mode located at bottom of the editor and Click on “Save”. This will attach our Script code with page.
Best DotNetNuke Hosting Recommendation
ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers DotNetNuke hosting starts from $5. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable DotNetNuke Hosting, we should be your best choice.