After testing I found that it can be anywhere in the body  and it must be like this:
HTML Code:
<script>
newwindow=window.open('url','name','height=500,width=400,left=100,top=100,resizable=no,scrollbars=no,toolbar=no,status=no');
</script>
That has been revised from the other code which looked like:
Code:
<script>
newwindow=window.open(url,'name','height=500,width=400,left=100,
top=100,resizable=no,scrollbars=no,toolbar=no,status=no');
</script>
If you'll notice the url now has '' around it, and there is no return so there shouldn't be any errors now
By the way, you have to take out the spaces which this is adding automatically...
and one more thing, If you want it to open a new window from a link just say so and i will revise it so that you can click on a link and it will open the window  right now it opens automatically when the page loads
Last edited by log2 : 01-17-2005 at 05:36 AM.
|