Click to See Complete Forum and Search --> : Removing Things From Browser


ChadC
01-02-2003, 07:07 PM
Hi,

Is it possible to get rid of the menubar, address bar, scroll bars, etc. after the page loads. For example I have a link loading a page, when the new page loads I want to get rid of all of that stuff.

Thanx

ChadC

Digital Dragon
01-02-2003, 07:17 PM
Yes..go to "View" on the menu, click it and point to"Toolbars"
as the menu expands there will be checkmarks next to the items that are currently displayed...uncheck the ones you don't want......

If you decide you want them back...just select them again...

Was that the answer you needed?

ChadC
01-02-2003, 07:19 PM
Ahh yes... But I need to know how to do it with Javascript...

Thanks for the quick reply tho!

-ChadC

khalidali63
01-02-2003, 07:20 PM
On the other hand if you wanted to do the above pragrammatically using JavaScript,then you just have set these properties to no,where you open a new window

Khalid

pyro
01-02-2003, 07:20 PM
You will only be able to do it if you open a new window. i believe you can't make changes to a currently open window.

ChadC
01-02-2003, 07:31 PM
OK... then comes this problem...

I have an image with an image map that has a few different links. If you click one of the links it opens it's own page, but all the links on the image are set to target the same window... understand... i hope so. What I need to do is get this window named popupwin to have none of those extra things.

-Chad C

pyro
01-02-2003, 08:22 PM
Not sure exactly what you want...Maybe this?

<script language="JavaScript">
<!--Hide
function popup()
{
var url = "popup.htm";
var name = "popupwin";
var windowproperties = "width=550,height=300,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,left=150,top=150";
window.open(url, name, windowproperties);
}
//End Hide-->
</script>

Then to call it

onClick="popup()"

NOTE: var windowproperties all goes on on line