Monday, November 19, 2007

How to add or edit Java Scripts

How to add or edit Java Scripts

To add or edit Java Scripts

Javascript can be thought of as an extension to HTML which allows web page designers to incorporate some functionality in their web pages.

Javascript can also be used in a number of ways to spice up your page.

Step 1.

  • To open the Java Script Editor, do one of the following:

    1. Double-click the JavaScript icon in the document window.

    2. Select the JavaScript icon in the document window, and click the Edit button in the Inspector.

    3. Click the Java bean icon in the upper right of the document window.

Step 2.

  • If the icons on the JavaScript Editor toolbar are inactive, click New Script Item button.

Step 3.

  • Click the Events tab of the JavaScript Inspector to see the objects that can have events attached and the events that they can support. To add an event to your script, drag an item from the Events tab to the JavaScript Editor window.

Step 4.

  • Click the Objects tab of the JavaScript Inspector to display the complete inventory of JavaScript objects and methods available. To add an object to your script, drag it from the Objects tab to the JavaScript Editor window.

Step 5.

  • Close the JavaScript Editor to save your work.

Step 6.

  • Click Show in Browser on the toolbar to open the browser you selected for previewing and testing in the Preferences dialog box.

  • You can also choose the Special followed by Show in Default Browser. You cannot preview the effects of a JavaScript script in Preview mode.


No comments: