View Full Version : totally chromeless...
krycek
11-18-2002, 11:08 PM
a little while ago there were some threads about chromeless windows... quite useful :)
however, I was surfing today and a window popped up with absolutely no chrome at all... I could not access the menus, F11 did nothing, etc. etc. - how do you do that?
I have tried a few of the properties mentioned in other posts, but none seem to get rid of ALL the chrome.
::] krycek [::
JustAsking
11-18-2002, 11:18 PM
krycek,
Do you remember the website address where you saw that. If you did just have a look at the source code to see how it is done. If you find or know the link post it here please :D
krycek
11-18-2002, 11:36 PM
well, because it was totally chromeless, I was unable to get at the source!
I tried all the ways I know... but none of the menu stuff worked, right click was disabled, etc. etc.
As for the site, it was a random popup, I have not seen it again. I would dearly like to know how it was done!!!
::] krycek [::
Algorithm
11-18-2002, 11:59 PM
My guess would be a transparent layer over the current page, and not a popup at all, but without seeing the source, I can't be sure.
I hate those types of ads...
krycek
11-19-2002, 12:08 AM
...it was very much a popup window. I use two monitors, the one on my left is at 1920x1440 for coding, and the one on my right is at 1024x768 (and varies!) for previewing/browsing.
When this happened, I was browsing in the right monitor, and the IE window popped up on the left. I played with it for a while, and tried to learn it's secret... but it wouldn't give it up. I was impressed!
::] krycek [::
Borgtex
11-19-2002, 12:12 AM
It can be just a chromeless window without chrome.
In fact, a chromeless window starts as a window without no borders & navigation system at all (after all it's a fullscreen window). You (via a script or similar) are who adds the buttons and all the stuff to make it work like a normal window. Commercial popups just skip this step with one goal in mind: the normal user doesn't knows that you can close anything with alt-f4, and that means more presence time, and a safe lauchpad for more popups.
krycek
11-19-2002, 12:15 AM
...how would you do that?
this was not fullscreen... it was approx 400x300
I have tried all the switches I know, all leave a border - even fullscreening and then moving keeps the border.
so, enlighten us... how is it done? :confused:
::] krycek [::
Borgtex
11-19-2002, 12:29 AM
put this in your directions bar (without the space between java & script, if any). Remember alt+f4. No anti-context menu function added
javascript:noc=window.open('','pop','fullscreen=1, left=30, top=30, menubar=no, resizable=no, status=no, scrollbars=no');noc.resizeTo(300,200); noc.moveTo(100,100);noc.document.write('<body scroll="no">THE EVIL AD STRIKES AGAIN');void('')
...and the light was done
krycek
11-19-2002, 01:18 AM
hum, I just get "Access Is Denied"... odd... I will play with it later :)
Cheers anyway, I'm sure it works :)
::] krycek [::
JustAsking
11-19-2002, 02:03 AM
Borgtex - very nicely done, I like it :thumbsup:
krycek - you could use it like this:
<a href="#" onclick="javascript:noc=window.open('','pop','fullscreen=1, left=30, top=30, menubar=no, resizable=no, status=no, scrollbars=no');noc.resizeTo(300,200); noc.moveTo(100,100);noc.document.write('<body bgcolor=#000066 text=#FFFFFF scroll=no>THE EVIL AD STRIKES AGAIN');void('')">test</a>
I'd invest some time looking at window.createPopup() found in Internet Explorer 5.5 and above. It could very well do what was described.
krycek
11-19-2002, 01:39 PM
Originally posted by JustAsking
Borgtex - very nicely done, I like it :thumbsup:
krycek - you could use it like this:
<a href="#" onclick="javascript:noc=window.open('','pop','fullscreen=1, left=30, top=30, menubar=no, resizable=no, status=no, scrollbars=no');noc.resizeTo(300,200); noc.moveTo(100,100);noc.document.write('<body bgcolor=#000066 text=#FFFFFF scroll=no>THE EVIL AD STRIKES AGAIN');void('')">test</a>
well that's similar to what I did originally, except that I put it in a button.
And, simply copy & pasting that code you gave does... nothing. zilch. nada. I am not sure why... I merely copied it to a page, when I click it, nothing happens. I look at the taskbar, no new windows. I am on IE6 & WinXP Pro SP! if that helps...
jkd, I think I will take your advice, however (argh the blasphemy!) it would be nice to find a cross-browser technique... so that others here can use it too, and not just me who loves IE and has sold his soul to Microsoft :D
::] krycek [::
Originally posted by krycek
it would be nice to find a cross-browser technique... so that others here can use it too, and not just me who loves IE and has sold his soul to Microsoft :D
::] krycek [::
I am glad that no other browser supports such an annoying "feature." Even MS removed the "feature" because it was actually a bug. If MS calls it a bug, you know it is pretty bad.
Membie
11-19-2002, 03:39 PM
Please correct me if I'm wrong, hope the following makes sence...
Any chromeless window or popup window can be opened, sourcecode viewed, just be typing Ctrl+N (open in new browser window).
Cannot you find it back in your browsers history?
If popup opened only once (?) a cookie was set. Look in your temporary internet files, play cookie-monster (LOL), and see if you can find the cookie
Anyway: try typing Ctrl+N next time ;)
krycek
11-19-2002, 04:22 PM
...all keystrokes were disabled :) good idea though, and I did try it.
I have so many things in my history that it would be an almost impossible task!
::] krycek [::
Membie
11-19-2002, 10:38 PM
Interesting ;) All keystrokes disabled? Wonder how they did that?
Chromeless means opening fullscreen firts en resize later. Not? Annoying i.m.h.p.o.v. (in my humble point of view ;) ) cause your screen seems to 'flash'
Why not like this...
This is your opener
<html>
<head>
<script>
<!--
var windowW=400
var windowH=300
var windowX = 200
var windowY = 200
winVars = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false
function framelessPopup()
{if (beIE)
{noframeWindow = window.open("","popFrameless","fullscreen,"+winVars)
noframeWindow.blur()
window.focus()
noframeWindow.resizeTo(windowW,windowH)
noframeWindow.moveTo(windowX,windowY)
var frameString=""+
"<html>"+
"<head>"+
"<title>Your title</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='your_popup.htm' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
noframeWindow.document.open();
noframeWindow.document.write(frameString)
noframeWindow.document.close()}
else
{noframeWindow=window.open(your_popup.htm,"popFrameless","scrollbars,"+winVars)
noframeWindow.blur()
window.focus()
noframeWindow.resizeTo(windowW,windowH)
noframeWindow.moveTo(windowX,windowY)}
noframeWindow.focus()}
//-->
</script>
</head>
<body onLoad="framelessPopup()"></body>
</html>
And this is your popup
<html>
<head>
<title>Your popup</title>
</head>
<body bgcolor="#FF0000">
<h1 align="center"><font face="Arial" color="#FFFFFF"><b>This is your "chromeless" popup!<br>
Just kidding / fun to play with!</b></font></h1>
<p align="center">
<a href="javascript:top.window.close()">Click here to close this popup</a>
</body>
</html>
No screenflash... ;) It's there in on 'instant'
Hope this is a help?
beetle
11-19-2002, 11:01 PM
I was thinking maybe it was a modeless or modal window, but I don't think those support fullscreen. hmmmm....
krycek
11-19-2002, 11:03 PM
well, thanks for that script... but it did not work.
It popped up a red screen with your message on, and yes it was totally chromless, BUT it was fullscreen...
I want to make it chromeless at a set size, like that annoying but intriguing little popup...
...oh, and disabling keystrokes is easy :) simply make a document.onkeydown function (or capture the key event in netscape) and put return false in it, that way no keys will do anything.
I had to close the window from the taskbar :)
::] krycek [::
Membie
11-19-2002, 11:21 PM
Strange, cause I have IE6 & WinXP aswell and it workes / worked just 'fine' for me
Sorry mate ;)
I noticed a footer something like this: "have you googled it lately".
Wish you luck ;)
krycek
11-19-2002, 11:57 PM
membie... I must have done something wrong.
I put the first lot of html into a file I called popupgen.htm, then the second lot into popup.htm.
I changed the two occurences of your_popup.htm into popup.htm, then loaded popupgen.htm.
I got TWO windows, one was the red one (fullscreen) and the second was behind the first, also fullscreen but with a 404 error.
In fact, maybe the strangest thing is, I just loaded the file again and absolutely nothing happens now - and I haven't changed anything. Maybe I will fiddle around a bit...
::] krycek [::
Membie
11-20-2002, 12:16 AM
Don't think you did something wrong: I did.
Sorry for that ;) but please try the attached file.
Strange it opens fullscreen though
krycek
11-20-2002, 12:40 AM
hum, well that does the same as the last one, except no error.
still fullscreen.
I wonder how to get it NOT fullscreen? :confused:
::] krycek [::
Membie
11-20-2002, 12:59 AM
Only thing I can advise you to do is to check it on another client / workspace.
Cannot imagine why it works fine for me, and not for you. Has to be your settings...
Maybe someone else could (IE6, XP) / would be so nice to check it out and pleasssssssssssse confirm this? It's driving me nuts.
For now I'm going to bed (2 am), I have a meeting tomorrow, have to be awake then aswell ;) See you.
krycek
11-20-2002, 01:20 AM
Well, Membie, I am on a clean install of XP SP1, with only one week's worth of surfing, and the only stuff on here is my normal programs. No garbage yet, and and no settings changed in weird ways.
Maybe it is something to do with SP1? I am on XP Pro SP1 and IE 6 SP1... are you?
I thought it might be because I use two monitors, but I have played around and still I only get it full screen.
::] krycek [::
PS - why did it work for me before, I wonder? :confused: (I mean, with the popup ad that started all this)
The "chromeless" bug was fixed in XP SP1.
kwhubby
11-20-2002, 06:16 AM
just a question, how do you do the fullscreen f11 in javascript?
Speeking of popups and alt f4, Ive made a nasty little script :D that makes a loop of infinite popups, that all reopen when closed, are frozen with infinite looped alerts. and are made really big to hide the x. The only sure way to close it, (on my comp, other ops and browsers act differently) is to either terminate process of iexplorer.exe or to hold alt f4 for a few years. (of course you could also hardboot). This is fun to have for an inexpireinced user to open, that is if your that mean, or really don;t like the person.
ps:
ive had a few slow 98 ers that have to have a hard boot for it
edit:
whoops sorry, did not see how much more longer that the thread was
beetle
11-20-2002, 07:04 AM
kwhubby
nothing new. Been around since the 'net.
Besides, does diddly-poop on Mozilla :D
Membie
11-20-2002, 03:40 PM
Well, I've googled it and, from what I found sofar, it seems krycek that the reason why the script I gave opens fullscreen at your cliënt is indeed due to your SP1 ;)
If you call a chromeless window a bug (jkd) /*which I disagree*/ then fullscreen is the way it seems to be "fixed" by SP1 <!-- That's not fixing, that's rape //-->
(My) conclusion: don't fix anything that ís not broken ;)
What remains is mine curiosity aswell: Why could krycek see the chromeless popup that started this thread if chromeless is fullscreen "debugged"?
Please enlighten us krycek /*your the only one who can*/ Try surching your history again... A lot of work, I know, my history is probably as messy as yours ;) but than again: think of all those suffering surching ánd in vain now... (I for one)
Window features are most likely set by its opener. No need to surch the popup (or cookie), my guess, js file(s) probarly(?)
You started this. Don't give up the fight.... (if I say "please"?)
krycek
11-20-2002, 03:50 PM
well, it may be simpler than you think.
as I previously mentioned, I am on a nice clean install, which I do every few months. Now, this time round I did the install to coincide with the release of XP SP1, so that I would be up-to-date as always.
I *think* that I say this popup just before I re-installed XP, which means that A) it aint in my history, I've checked, and B) if it is indeed SP1 which "fixes" the "bug" then that is why the script you did does not work for me :(
DAMN Microsoft! :mad: ...and I only just sold them my soul a year ago, because XP is so good! :mad:
::] krycek [::
beetle
11-20-2002, 04:16 PM
Of course it's a bug, why else would you be able to resize a fullscreen window?
Originally posted by Membie
If you call a chromeless window a bug (jkd) /*which I disagree*/ then fullscreen is the way it seems to be "fixed" by SP1 <!-- That's not fixing, that's rape //-->
(My) conclusion: don't fix anything that ís not broken ;)
It was a bug. Chromeless windows were a result of resizing fullscreen windows. Fullscreen windows aren't supposed to be resized. It also allowed webpages to escape the GUI of the web browser, and discourage the ability to exit them.
It was broken. Microsoft even called it a bug. And for once, they fixed it. (As opposed to fixing some severe security issues, but that's beside the point.)
krycek
11-20-2002, 05:02 PM
...I wasn't saying that is was or wasn't a bug
I don't actually know how the popup was done, but it was most likely the way that membie detailed... if so, I would tend to agree it was by exploiting a bug.
:)
::] krycek [::
Membie
11-20-2002, 05:03 PM
Cannot match those (Microsoft) arguments ;)
Let me reframe: I didn't mind fullscreen could be resized http://www.designhulp.nl/SystemImages/icon_smile_tongue.gif
If there were other options to reach the same window feature results I would prefer them, but there weren't / aren't.
Use it correctly, give visitors your own close button, etc and from designer point of view: it looks far more nicely.
Agree!!! http://www.designhulp.nl/SystemImages/icon_smile_approve.gif
krycek
11-20-2002, 05:45 PM
Originally posted by Membie
Use it correctly, give visitors your own close button, etc and from designer point of view: it looks far more nicely.
[/IMG] [/B]
...that was exactly what I was hoping to do :) oh well...
::] krycek [::
ASAAKI
11-21-2002, 04:36 AM
It was broken. Microsoft even called it a bug. And for once, they fixed it.
well, I'm glad they don't seem to have fixed it properly :p
undyingfires started a recent thread to review his site, which happened to have a chromeless which DID work on IE6 and WASN'T fullscreen...
... agreed, Membie! :thumbsup:
krycek
11-21-2002, 12:16 PM
Originally posted by ASAAKI
undyingfires started a recent thread to review his site, which happened to have a chromeless which DID work on IE6 and WASN'T fullscreen...
...HOW???!!!?!??!!?!??!?!?! :confused:
::] krycek [::
Membie
11-21-2002, 12:39 PM
He means This thread... (http://www.codingforums.com/showthread.php?threadid=9880&highlight=review) but don't bother. No mentioning of SP1 fullscreen problems ;)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.