I have a problem in previewing the image which i want to upload to the server. It works fine in IE but it doesnt work in NS. Can anyone tell me what is the problem?<BR>the code is as follows<BR><BR>function openWindow() {<BR> var url = document.formname.Attachfile.value;<BR> if (url=="")<BR> {<BR> alert("No image has been selected.
Please select some image to preview");<BR> document.formname.Attachfile.focus();<BR> return false;<BR> }<BR> else<BR> {<BR> options = "resizable=yes,scrollbars=yes,status=no,";<BR> options += "menubar=no,toolbar=no,height=320,width=400,locati on=no,directories=no";<BR> var newWin = window.open(url, &#039;newWin&#039;, options);<BR> return true;<BR> }<BR><BR>and <BR>&#060;INPUT type="button" value="Preview" onclick= "openWindow();"&#062;<BR>in body section.<BR>