ActiveX Guide

The Object Scripting Model


Scripting Object Model Example
This example will create an HTML page that opens a new browser window and allows the user of the page to use the newly opened window to navigate the opening window.

  1. Create an HTML document, call it x1.html (lower case). This will be the opening HTML page.

  2. Add the following HTML to the document you've created.

  3. Create another HTML document called x2.html, this will be the navigation tool (the opened window). Put the following HTML into x2.html.

  4. Go back to x1.html and add this

    between the <SCRIPT...></SCRIPT> tags and save x1.html.

    The open command takes the following form,
    • open(window name, URL, window features);

    In our example the window that is opened will be 300*150 pixels in size and will appear 100 pixels away from the edges of the screen.

  5. Load x1.html into your browser.

  6. Go to the next stage.