Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Viewer error - netscape

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
The source of Image Viewer are as follow:

<html>
<head>
<title>Image Viewer</title>
<script>

function change()
{
document.image.src = &quot;file:///&quot; + document.form.source.value
document.image.height = document.form.height.value
document.image.width = document.form.width.value
}
</script>
<body bgcolor=&quot;white&quot; text=&quot;black&quot;>
<center>
<hr>
<p>
<center>
<form name=&quot;form&quot;>
<input type=&quot;file&quot; value=&quot;Image Source&quot; name=&quot;source&quot; size=40>
<p>Height: <input type=&quot;text&quot; value=&quot;200&quot; name=&quot;height&quot; size=&quot;3&quot;> Width: <input type=&quot;text&quot; value=&quot;150&quot; name=&quot;width&quot; size=&quot;3&quot;>
<p><input type=&quot;button&quot; value=&quot;View Image&quot; onClick=&quot;change()&quot;>
</form>
<p><hr>
<p><img src=&quot;blah&quot; name=&quot;image&quot; height=&quot;&quot; width=&quot;&quot;>
</body>
</html>

The error of the image viwer :

illegal URL method 'file:'.

Can anyone suggest a remedy, please?

Thanks in advance,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top