Search:

Welcome

Login to contribute. Register if you haven't yet.

Need Support?

Search this site to find an answer. If you still need help, post a Question. Private or account-related support inquiries can be made at the Contact Center.

How can I use Javascript in my EditMe pages?


By default, EditMe's editor does not allow Javascript. If you attempt to paste Javascript into the editor, it will either be removed entirely or otherwise disabled. There are, however, work-arounds.

You can use Javascript in EditMe in three different ways:

  • Option 1: Attach a .js file to your page and reference it with a <script src="..."></script> tag in your page. This is a good option if your Javascript file is fairly fixed, and won't need to be edited a lot.
  • Option 2 (recommended): Use a plain text edited page to manage the Javascript. This allows you to manage the Javascript using all the tools provided to EditMe pages, like versioning and easy editing. Then you can include the script page into any other page you like.
  • Option 3: Use a plain text editing page and set the Serve Raw Page Content page property with the MIME Type of application/javascript. You can then use a <script> tag to include the page directly into your site's XSL Stylesheet or into an individual page.