Playing with Window

admin

Administrator
Staff member
I need to open a page and have no scrollbar, status, menu, location, etc.

The only thing I can think of is to create a page that uses window.open to open a new window without all the stuff I don't want and then to close the page that called it.

I got this working but when I use window.close(); it asks the user if they want to allow the page to close. Does anyone know how to get around this?

Or, if you can make the current page hide all of the scrollbars, menus, location, etc. that would work also.

Here is the code I am using now.

<script>
stw = window.open("", "JavaConnect", 'width=315,height=460,directories=0,location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar= 1,toolbar=0');

stw.navigate("MyURL");
if (stw.opener == null)
stw.opener = window;

window.close();
</script>
 
Back
Top