Using HTML and JavaScript
Please use the “Print” function at the bottom of the page to create a PDF.
Valid for MyWebsite Now.
The MyWebsite Now HTML module allows you to use HTML and JavaScript on your website. This article explains how to do this.
Note
The HTML module is not available in all MyWebsite Now plans. If you have any questions about your package, please contact IONOS Customer Service.
Open the MyWebsite Now editor
- Log in to your IONOS account.
- Click on Menu > Websites & Stores in the title bar.
- Click on Manage website in the tile with the name of your online project, if you have multiple contracts.
The Presence Suite for this project opens. - Select Website > Website Editor in the left menu bar of the Presence Suite. The MyWebsite Now Editor opens in a new window.
Integrate HTML module
To insert HTML or JavaScript (JS):
- Select Content in the left-hand menu bar of the MyWebsite Now editor.
- Move the mouse pointer over the desired section in the detail window, and click on the Elements button in the top left-hand corner of the section
- Click on a plus sign in the detail window.
- Select the HTML Module button. A placeholder is displayed in the detail area.
- Click on Done in the left menu.
- Click on the HTML Module placeholder. An additional toolbar is displayed.
- Click on Code to insert HTML or JavaScript code.
- Place your code in the provided text area under Code.
- Scroll down to Privacy Consent, and click on Choose a consent… to select your option. You can find out more about this in the Add data privacy consent section.
- Finish your entry with Done.
Add data privacy consent
In the HTML module, you will find a data protection option below the code input field:
- Consent required: Your HTML or JavaScript code will only be executed on the MyWebsite Now page after consent has been given by the visitor. Use the New... option to create a new consent rule. Consent rules that have already been created can be reused.
- No consent required: The HTML or JavaScript code of your HTML module is executed directly when the page is opened.
Execute HTML in the page header (head)
If you place HTML or JavaScript code in the page header of your MyWebsite Now project, it will be used on every page.
- In the left-hand menu bar of the MyWebsite Now editor, select Settings > Custom Head Code.
- Enter your HTML or JavaScript code.
- Select a privacy consent option and finish your entry with Save .