Forum Moderators: open

Message Too Old, No Replies

Removing address and scroll bars from a browser window that is already

please help

         

domoftheuk

2:31 pm on Jan 17, 2004 (gmt 0)

10+ Year Member



Removing address and scroll bars from a browser window that is already open

Please help

how do you get rid of the toolbars (standard buttons, address bar and the file edit view bar)

-----------------------------

when i open my webpage it automaticle resizes it's self and moves to a certain place

<script>
window.moveTo(105,50);
window.resizeTo(532,355);
</SCRIPT>

its not a pop up window

isitreal

7:14 pm on Jan 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This will work:


sizex = 532;
sizey = 355;
topPos = 105;
leftPos = 50;

features = 'scrollbars=no,toolbar=no,menubar=no,status=no,resizable=no, width=' + sizex + ',height=' + sizey + ',top=' + topPos + ',left= ' + leftPos;

var popupWindow = window.open(url, 'window_name', features );
popupWindow.focus();

or you can skip the variable assignments and just hard code the values into the features string

tedster

3:50 am on Jan 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



its not a pop up window

By this I assume you mean you are not opening a new window. If that's so, AFAIK you can't remove window features, you can only do that with a window your script opened.

The main window of a browser is the visitor's own business, not the site owner's. If you feel your site needs a custom window with some standard features turned off, the best approach is to open a new window and leave the one alone that the user already had open.

Stephen Tiller

11:06 am on Feb 10, 2004 (gmt 0)

10+ Year Member



Hi

Is it possible to remove the bottom bar only but keep the vertical scroll bar.

I have an unnecessary horizontal scroll bar.

Thanks

Steve