Javascript Example

Use the following code to make an html file. Play with this by modifying the options variable. There is a reference to a “launchit.gif” button. Find that button on this page and save it with a right click in the same directory as the html file.


<head><title>JS Test</title>

<script language="JavaScript">
function openSmWindow(url) {
var options = "width=" + 300 + ",height=" + 200 + ",";
options += "resizable=no,scrollbars=no,status=no,";
options += "menubar=no,toolbar=no,location=no,directories=no";
var newWin =, 'newWin', options);
newWin.document.writeln("alright, we are in business<br>");





<a href="javascript:openSmWindow('')"><img src="./launchit.gif" border=0></a>


launch it