Click to See Complete Forum and Search --> : HTML: Getting a 'titleless' window?
Wallex
11-21-2002, 07:57 PM
I have a friend that tells me he keeps trying to make an html page with 'nothing'. What do I mean nothing? He wants no status bar, no titlebar, no nothing.. maybe just the border. He thinks it is possible... but I keep thinking otherwise. I guess the html has instructions to remove the menu and status bar, but isn't the title-bar and border something managed by the Windows Manager? He even forced me to come here and ask around to see if anyone knew if it's possible. He just wants to make a 'popup' that has nothing.. no titlebar, no menu, no status, just the border and the contents.. kinda like the kind of banner which you can't close unless you know the shortcut key to do that. Hmm... now that I think about it, I think I've seen spammer ads which do not have the 'X' (close) button when I view them from MIE. Maybe it is possible? He is a windows User... but the question is more 'html' related... or it depends more on the browser? Anyway.. does anyone knows if it can be done? Or at least a link to some page with pop-ups of this type?
Finally.. no he is not trying to make his own popups for spamming purposes, just wants to use html to present a college project, but he hates the 'My Project - Microsoft Internet Explorer' message that shows in his window titlebar.
Rüpel
11-22-2002, 06:11 AM
you cannot suppress these things with plain HTML. the weird things (no buttonbar, no statusbar etc) are done by controling the browser - and each of them is different, so there is no standard way for such popups. and that's good in my opinion, btw!
you may however use javascript to launch a ie-window without buttonbar and without statusbar, but the titlebar will always be there! every window has it. no way around (from the HTML point of view).
Wallex
11-22-2002, 01:03 PM
Hmm... I might have forgotten to mention this, but my friend doesn't cares what you need to do in order to get that done in code. In other words, he would use java, javascript or anything to get the titleless window. Hmm... But I guess the point remains, you can't code a webpage (no matter the format) to make it hide the titlebar, right? The titlebar doesn't even belongs to the application... it is handled by the windows manager. Well I guess my friend was asking for too much. Altough it would hurt regular IE users if they started seeing popup ads that have no titlebar with no 'x' button to close them down (specially if they don't know about Alt+F4)!
Well, thanks for the reply.
mingshun
11-24-2002, 02:23 PM
Here's one of my html's source.
other.html: the webpage that doesn't have titles, status, ...
school_homepage: target property of other.html
height and width should be self-explainatory
Other attributes are set to '0' by default I think hence you won't see titlebars, statusbars and those stuff.
<HEAD>
<script language="Javascript">
<!--
window.open("other.html","school_homepage","height=50,width=150");
//-->
</script>
</HEAD>
mingshun
11-24-2002, 02:26 PM
Originally posted by Wallex
Altough it would hurt regular IE users if they started seeing popup ads that have no titlebar with no 'x' button to close them down (specially if they don't know about Alt+F4)!
Well, thanks for the reply.
It doesn't hurt because press Ctrl-n in IE will open exactly an "image" of this webpage with all the attributes visible. Therefore, this feature is actually quite meaningless to me.
Wallex
11-25-2002, 01:02 PM
Hmm.. thanks for the info.
I think my friend is into javascript.. I directed him to some tutorials on the issue.. maybe he has figured it out on his ownr or maybe not.. altough it seems rather 'easy' to do as you pointed out in the example. I'll ask him later at college when I see him. Thanks for the info.
Starfish
11-26-2002, 08:06 PM
Something that might have escaped you is that you can use a layer via <div>'s to display a window. Then use show and hide layer javascript to display the contents of that window via a button/img.
If you use this method you will have to have the layer contents within the main html file, rather than loading it from a seperate html file as window.open methods.
at least layers are titleless and statusbarless - just a suggestion of course. You can get a module extension to Dreamweaver 4 or MX called "chromless window" by public domain ltd to produce windows which have no titlebar and statusbar at the macromedia exchange.
Just as Starfish said, you can use layers
<code>
<div class="smallBorder" id="hiddenLayer" style="position:absolute;visibility:hidden;"> contents here </div>
</code>
the class="smallBorder" makes a frame that you can define with css.
Then have a js function that makes the layer visible
now if I could only figure out how to do code tags properly
nuvan
11-29-2002, 12:14 PM
Originally posted by emus
now if I could only figure out how to do code tags properly
put it inside of square brackets "[" and "]"