[object] error on opening new window

wxdqz

New Member
Hello,

I have the following piece of code to open a new window and is giving me an [object] error on the parent window.

<Script language = "JavaScript">
window.location.href = "javascript:Window.open('files/index.html','Method','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width= 760,height=390,left=100,top=200');"
</script>

The above code is opening up a new window as specified, but it is overwriting the parent page with [object]. I could not figure out the reason for the error. If anyone can please help, I would highly appreciate it.

Thanks ,
VMRao.;)
 
Top