Knowledgebase
Javascript
Posted by on 21 December 2010 01:53 PM

Javascript:

Javascript is a very powerful script that can create tools, menus, “widgets”, and more that will bring any web page to life and add functionality making a visitor’s experience more enjoyable. While Javascript can add funa and functionality to your website, many browsers allow Javascript to be turned off. As a result it is always wise know your intended audience before considering its use.

With Javascript there are tags that will set the script apart from the HTML. The tags used to begin and end a script are the <SCRIPT> and </SCRIPT> tags. Usually a script will be divided into two sections – one part that goes into the header of your page and the other that gets put in the body.

  1. First login to your admin page and click the link in the left navigation menu to edit the page on which you want to use the Javascript.
  2. Next, click the “SEO Features” tab in the page settings.
  3. To insert the code into the header of the page, enter the code into the “Additional <HEAD> content” box and click the “Save Changes” button.
  4. To insert the code into the body of the page, you can either use the “Edit HTML Source” feature or the “Paste HTML Code” feature.
    1.  
      1. To insert the Javascript into the body of the page using the “Paste HTML Code” feature, find the location in the page using the Page Editor where you want the Javascript object to be displayed and click in the area you want to code inserted.
      2. Then click the “Paste HTML Code” button.
      3. In the window that appears, enter the Javascript (that’s intended for the body of the page) in the “HTML code” box, enter a caption in the “Caption” field to name the code, and click the “Insert Code” button.
      4. You can then move the object or resize the object by clicking it in the Page Editor window.
  5. To insert code into the body of the page using the “Edit HTML Source” feature, click the “Edit HTML Source” button in the Page Editor icons.
    1.  
      1. Then find the place in the source code where you want the Javascript and enter the Javascript there.
      2. Click the “OK” button.
      3. You can then move the object or resize the object by clicking it in the Page Editor window

*Important Note: The WYSIWYG page editor is not designed to have HTML or Javascript entered into it. If you wish to use HTML, you MUST either use the "Edit HTML Source" feature to work directly in the HTML code or use the "Paste HTML Code" feature to insert the HTML or Javascript. Entering HTML or Javascript into the WYSIWIG editor may cause unexpected issues with your website.

*Note: While most web browsers support Javascript, many browsers allow Javascript to be turned off. So, it is possible that some of your visitors will not see the things you put on your website using Javascript.  As a result it is always wise know your intended audience before considering the use of Javascript and other website features.