Open File Specified In Form (II)

[Total: 0    Average: 0/5]

This example shows how to put two strings together to specify a complete URL path and file.

Body Code:

<script type=text/javascript>
function openHelpWindow() { 
//This function opens the correct Help Window in either in Edit or Read mode. HelpKey2 returns either "Edit" or "Read" 
var _i = document.exf1.helpkey2.selectedIndex;
var tmpMode = document.exf1.helpkey2[_i].value.toString();
winURL = "" + tmpMode; 
winName = "Help"; 
winOpts = 'toolbar=no, location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,toolbar=no,copyhistory=no,width=500,height=300'; 
HelpWin = winURL, winName, winOpts ); 

<form name=exf1>
Site To Visit: 
<select name="helpkey2">
    <option value="/">HOME</option>
    <option value="forums/">FORUM</option>
<a href="javascript:void openHelpWindow()">Open the page specified</a> 

Times Viewed: 6

Leave a Reply

Your email address will not be published. Required fields are marked *