Why is this small Javascript not working ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arthur Connor

    Why is this small Javascript not working ?

    Below you will find the first lines of my HTML page.
    Why doesn't popup a dialog window ?
    I click the Html page which is on my hard disc. A IE 5.5 browser window opens
    but not a dialog window inside.

    <HTML>
    <HEAD>
    <TITLE>Test page</TITLE>
    <script LANGUAGE="JavaS cript">
    <!--
    function popitup(percent ){
    popup = window.open("", "popDialog","he ight=160,width= 300,scrollbars= no");
    popup.document. write("HELLO"+p ercent);
    //popup.document. close();
    }
    // -->
    <script>
    </HEAD>
    <BODY onLoad="popitup (0)">
    .....

    Arty

Working...