Welcome to WebmasterWorld Guest from 54.159.190.106

Forum Moderators: incrediBILL

Message Too Old, No Replies

Address bar & buttons

How do I get rid of them?

   
2:43 pm on Apr 20, 2001 (gmt 0)

5+ Year Member



I know this is a kind of newbie question but I really need it answering.

A friend of mine has written a program and has done the help in HTML. I said that it would look better if when the help index file opened that the address bar and buttons were not visible in the browser window. I know you can do it because I've seen it done before but unfortunately can't remember where.

I'm using Dreamweaver 3 is there a quick way to do it in that or does it have to be written into the code. Also will it work across browsers and not just on IE?

Thank in advance, Andy.

5:54 pm on Apr 20, 2001 (gmt 0)

WebmasterWorld Senior Member mivox is a WebmasterWorld Top Contributor of All Time 10+ Year Member



It's a bit of javascript you use with an open new window command.... Here's the script I use by default. There's another script floating around the forums somewhere that does the saem thing in a bit less space, but I'm not sure where.

Put this in your document head, replacing the XX with the desired pixel sizes of the new window, and putting yes or no in place of each *:

<!--
function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "height=XX, width=XX, toolbar=*, menubar=*, location=*, scrollbars=*, resizable=*");
}
// -->

Then for the ink you want to pop open the new window, use this:
<a href="javascript:Start('http://URL of help file')">

6:40 pm on Apr 20, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



In mivox's example, notice all the code after "page," . This is called the feature string, and it determines which window features will be present. It works very differently when it is omitted from the argument, or if an empty string is included, or if even one feature parameter is declared.

If you don't hand the open() method any string at all, all the new window's features will be set to their individual default values.

However, if you pass an empty features string, the browser opens a window with all features turned off.

If you use the parameters string to set even one value, then
all the other features are turned off -- you do not need to explicitly say =no or =0

A second important point is make very sure to not include any spaces or line breaks inside this features parameter string. Netscape will choke.

Here's a tutorial about window features that's pretty thorough:
[webreference.com...]
The link takes you to page 4 of a thirteen page tutorial about working with windows.

Now, please excuse me while I climb on my soapbox for a minute ;) In many situations it is a useful courtesy to give a new window a status bar. When a new window sits blank for a while, the visitor gets antsy (the old rule of give them something to see in a maximum of 8 seconds).

When you include a status bar, your visitors can see if things are hanging or just slow to render. Without the status bar, you will lose them more often -- the X that closes the new window is an easy target and most people are quick on trigger.

8:10 am on Apr 23, 2001 (gmt 0)

5+ Year Member



Thanks for the help everyone. :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month