Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Scrollbar and toolbar in current browser

Status
Not open for further replies.

alfordjj

MIS
Jul 23, 2003
80
US
I'm trying to create a local web page that allows users to make a choice then calls a program. I want the page to be only as small as the area that I have text. I also want it centered and the toolbar and addressbar removed.

I've got the resize and positioning down, but can't find how to remove the toolbar and addressbar.

I'm not calling the page from another page, but rather from a shortcut on the desktop. I have found stuff that works when you call the page, but it isn't being called.

Here is my code that resizes and repositions.

Code:
<SCRIPT LANGUAGE="VBScript">
	Function Window_OnLoad()
		Window.ResizeTo 200, 250
		Window.moveTo (screen.width-200)/2, (screen.height-250)/2
    End Function   
    
</SCRIPT>

Thanks in advance to everyone!!
 
I've got the resize and positioning down, but can't find how to remove the toolbar and addressbar.

That's because you can't.

However, you can use javascript to open a new window without the toolbars. Try googling for "javascript window.open" and you'll find a list of valid parameters - 1 of which being the option to remove the toolbars. As far as removing them off the browser that the user opens themselves - that's just not possible.

-kaht

Looking for a puppy?

silky-icon-left.gif
[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
silky-icon-right.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top