Forms >>> File Open.
 
Script Categories













Forms >>> File Open.

This script allows someone to choose a file on their hard drive and open it.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function whatFile() {
window.location= 'file:///' + document.form1.cmuds.value;
}
//  End -->
</script>
<form name=form1>
<input
type=file name="cmuds">
<input
type=button onClick="whatFile()" value="Open File">
</form>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).




©