19 Create a JavaScript program to create webpage with field 'User Name', 'Password' and 'Submit' button in New Window.

Program:

<html>
<script>

       var win =  window.open("","","400,400");

       with(win.document)
       {
           writeln(' Username : <input type="text" id="t1">');
           writeln(' Password : <input type="password" id="t2">');
           writeln('    <input type="submit">');
       }
</script>
</html>


Output:


Previous
Next Post »