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.

                            

<html>
<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 = window.open(url, 'newWin', options);
newWin.focus();
newWin.document.writeln("alright, we are in business<br>");

}

//-->
</script>

</head>

<center>

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

</center>
</body>
</html>
 

launch it