PDA

View Full Version : A link without top menu of browser


joonstar
04-22-2003, 12:36 AM
(1) <a href=newwindow.html target=_blank>newwindow</a>

(2) <input type=button value="Show" onClick="window.open('newwindow.html','_blank')">

Both of above codes make a new window.

1. (1) makes a newwindow including top-button(file,edit,view...) of the blowser.

2. (2) makes a newwindow not-including top-button(file,edit,view...) of the blowser.

3. I don't like the input type of button. and I want the not-including top-button of the blowser.

4. I like the HTML type of button(A link), and I don't like to see
the top-button of the blowser.

I hope you help me.

shlagish
04-22-2003, 03:05 AM
I don't know if this is what your looking for but:

<a href="#" onClick='open("whatever.html", "name", "menubar=no, toolbar=no, location=no, directories=no")'>link</a>

This will make a link with whatever.html loading in a new window. This window won't have a menubar (file, edit, view, etc...). It won't have a toolbar (back, previous, home, etc...), it won't have a location bar (adress), it won't have the directories either...
those are the attributes a window can have:
menubar (file, edit, view, etc...)
toolbar (back, previous, home, etc...)
location (adress)
directories
status (status bar(at the bottom of the page))
scrollbars (on the right (duh))
ex:

<a href="#" onClick="open('http://www.perdu.com', 'perdu', 'toolbar=no, menubar=no, location=no, directories=no, status=no, scrollbars=no')">link</a>

The above loads http://www.perdu.com in a new window named perdu who doesn't have the toolbar, the menubar, the location bar, the directories, the status bar, nor the scrollbars

P.S
You might have you change "status" by "statusbar", not sure
I didn't test this, it might not work...

zoobie
04-22-2003, 05:00 AM
Please don't double post. I've answered this in the html forum.

brothercake
04-22-2003, 06:11 AM
here (http://www.codingforums.com/showthread.php?s=&threadid=18714) it is

brothercake
04-23-2003, 03:15 AM
.. but the other one's closed now, so I'm opening this back up. Sorry for the confusion :)