i have the following code ..witch will change the background off my page from files on my computer..but it opens a new window to do it .
Can it be made to change the background on the same window ??
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<script>
function display_image(image) {
myWindow = window.open("", "Preview", "toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=0,resizable=1,copyhistory=0,width= 1024,height=768,target=_parent" );
myWindow.document.open();
myWindow.document.write("</HEAD><BODY BACKGROUND=" + image + "><center><br><br><br>");
}
</script>
</HEAD>
<link href="style.css" rel="stylesheet" type="text/css" />
<center>
<BODY>
<table border="2" width="100%" height="100%">
<tr><td>
<form>
<p><input type="file" name="url"><br>
<input TYPE="button" VALUE="Wallpaper"
onClick="display_image("file:///"+document.forms[0].url.value)"> </p>
</form>
</td>
</tr>
</table>
</BODY>
</center>
</HTML>