decorative banner

Using JavaScript


    The GoLive built-in support for JavaScript and JScript lets you add interactivity to your documents, verify form input, enhance visual displays, and dynamically control the browser. The JavaScript Editor lets you build scripts in the application, embed them in your document, and test them immediately by launching the targeted browser.

    To make it easy for you to add JavaScript, GoLive provides a complete inventory of building blocks for all major JavaScript dialects and versions. Whenever you drag a Script icon from the Objects palette to the head section pane, you specify the targeted application in the Inspector, which then configures the JavaScript Editor accordingly. Combined with the ability of JavaScript to identify browsers, this feature makes it easy for you to build documents with multiplatform support.

    Important: Not all browsers implement JavaScript in the same way. Test all JavaScripts on all of your target browsers.

    Tip iconYou can become familiar with the JavaScript environment in GoLive by entering JavaScript expressions into the JavaScript Shell window. This window provides a command line you can use to communicate interactively with the JavaScript engine built into GoLive. For more information on using the JavaScript Shell window, see the SDK documentation.

Related Subtopics: