PDA

View Full Version : A home page without a menu bar


Nadja
08-30-2002, 04:14 PM
Hello,

I need to do a web site which pages don't have menu bars. I don't know how to remove the menu bar from my current window. The instruction : self.menubar.visible = false ; doesn't work. Do you know a way to do it ?

Thanks,
Nadja

joh6nn
08-31-2002, 12:59 AM
you can't manipulate the current window, only ones that you popup. sorry.

SouthernStar
01-07-2005, 08:21 PM
But can you have the original window close and be left with the on window without menu bars?

Brandoe85
01-07-2005, 10:15 PM
But can you have the original window close and be left with the on window without menu bars?
You can't close the original window with a script, you'd have to manually close it.

jbot
01-07-2005, 11:40 PM
But can you have the original window close and be left with the on window without menu bars?

not anymore you can't. going phishing are we? ;)

glenmac
01-08-2005, 05:52 PM
what about<html><head><title>CarefullNow</title>
<script>
open("test.htm","test","location=0,left=200,top=200,resizable=1,scrollbars=0 status=0,toolbar=0,fullscreen = yes");
opener=self;
self.close();
</script>
</head>
<body>test
</body>
</html>
could replace fullscreen with a width and height attribute

glenmac
01-08-2005, 06:56 PM
Like this maybe will give fullscreen but with ability to close window without using ctrl w.
<html><head><title>CarefullNow</title>
<script>//function test(){
var scrW = window.screen.width;
var scrH = window.screen.height;
open("search.htm","test","location=0,left=0,top=0,resizable=1,scrollbars=0 status=0,toolbar=0,width = " + scrW + " height = " + scrH);
opener=self;
self.close();
//}
</script>
</head>
<body >test
</body>
</html>

jbot
01-09-2005, 12:00 AM
no cannot close the opener window anymore. it is an exploit, and you should not be encouraging it.

glenmac
01-09-2005, 05:34 AM
it is an exploit, and you should not be encouraging it.
phssspp!!!
<html><head><title>CarefullNow</title>
<script>
var scrW = window.screen.width;
var scrH = window.screen.height;
var NuPge=open("mainpage.htm","test","location=0,left=0,top=0,resizable=1,scrollbars=0 status=0,toolbar=0,width = " + scrW + " height = " + scrH);
NuPge.focus()

</script>
</head>
<body onload ="resizeTo(0,0); moveTo(-100,-100)">test
</body>
</html>

This won't close the opening window but it opens your mainpage without toolbars ect.
Wouldn't want to use an exploit!

jbot
01-10-2005, 09:27 AM
<sarcasm detector="on"/>

Wouldn't want to use an exploit!

well, it was, but thankfully M$ closed that "feature". of course, the fact that this was IE only anyway shows why it was wrong to post that code anyway. :rolleyes: