Working with the Ajax JavaScript View

The JavaScript view allows you to evaluate JavaScript expressions. This is useful to test, check, and debug your JavaScript code.

Evaluating JavaScript Expressions

This procedure describes how to evaluate JavaScript expressions.

 

 

Instructions on how to complete a procedure

To evaluate a JavaScript expression:

  1. Go to Window | Open Perspective | Web Browser Tools.

  2. Click Open a URL in the Mozilla Browser from the main toolbar.
    The “Open URL…” dialog opens.

  3. Enter a URL in the “Enter URL…” text field and press Enter.
    The URL opens in the Internal Web Browser.  

  4. Go to the JavaScript view.

  1. Enter your JavaScript expression in the “Expression:” text field and press Enter.
    Your JavaScript expression evaluation output appears.

JavaScript Expression Evaluation

  1. Expand a line to see the complete output of the evaluation.

The output does not clear automatically, even if you launch a new evaluation. To clear previous output click the Clear JavaScript Evaluation Output.

You can also evaluate JavaScript expressions in the DOM Inspector view. For more information see Evaluating a Node.

JavaScript View Icons

The JavaScript View includes the following icons:

Clear

Clear variables and their references.

 

Read Also