Esempio di "documento 1" aperto mediante lo script:
<HTML>
<HEAD>
<TITLE>
esempio di menu</TITLE>
<SCRIPT LANGUAGE='JavaScript'>
<!--

function MakeArray() {
var lngth = MakeArray.arguments.length;
for ( i = 0 ; i<lngth ; i++ ) { this[i]=MakeArray.arguments[i] }
}

function seconda() {
var select = eval(document.menuform.elements[1].selectedIndex);
if( (select >0) && (select<5) ) {
var intl=new MakeArray(
'','documento1.html','documento2.html','documento3.html','documento4.html');
var nuove=intl[document.menuform.elements[1].selectedIndex];
window.open(nuove,"documenti","Toolbar=no,status=no,scrollbars=yes,resizable=yes,menubar=yes,height=150,width=150");
}
//-->
</SCRIPT>

</HEAD>
<BODY>
<P ALIGN=CENTER>
<B> Esempio di menu a discesa: <SELECT NAME="secondoMenu" onChange='seconda();'>
<option selected> SECONDO MENU
<option> - documento 1
<option> - documento 2
<option> - documento 3
<option> - documento 4
</SELECT>
</form>
</BODY>
</HTML>