Click to See Complete Forum and Search --> : window.open
rtatnell
02-16-2003, 01:01 PM
Is there a way of opening a browser window without a border, titlebar or system buttons using the window.open command or otherwise?
If yes, how (sample code please, im a bit new!)?
Thanks
rellik
02-16-2003, 01:04 PM
<a href="http://www.georgeafi.bravepages.com/" onclick="window.open(this.href, 'child', 'height=100,width=400'); return false">Miseria Cantare</a>
the above, Posted by Charles in another thread opens the page with just a border
rtatnell
02-16-2003, 01:10 PM
That doesnt seem to work, it still has all the system buttons etc and title bar.
georgeafi
02-16-2003, 01:16 PM
You can't git rid of the title bar. Its in the soft ware. Believe me i have looked everywhere. The only way you can get rid of it is some new program that came out awhile ago. I can't remeber what it is called though.
rellik
02-16-2003, 01:18 PM
the link opens a new window, with the border and the titlebar. no 'system buttons'.
what browser are you using?
georgeafi
02-16-2003, 01:22 PM
It shouldn't have the system buttons. Charles made it for me and it works fine. Mabey you acidentally deleted something. I don't know.
rellik
02-16-2003, 01:25 PM
of course you can add
the fullscreen to the features
<a href="http://www.google.com/" onclick="window.open(this.href, 'google', 'fullscreen'); return false">Link text</a>
although this can then only be closed by Alt+F4 and can be annoying! this has no borders and no titlebar
rtatnell
02-16-2003, 01:25 PM
I used exactly the code u quoted, nothing changed, and it still had the system buttons. I am using IE 6.
rellik
02-16-2003, 01:29 PM
Originally posted by rtatnell
I used exactly the code u quoted, nothing changed, and it still had the system buttons. I am using IE 6.
oh wait, do you mean the minimize, maximize and close buttons? there are a few scripts out there to get rid of them..but the windows arent like real windows. and can be annoying!
rtatnell
02-16-2003, 01:34 PM
Yeah, i know, ive just found one that does the fullscreen jobby, it looks a bit pants. I'll explain what I want to do to you, see if u've got any ideas.
I have a database, when the user logs on to the site a field is changed from the number 0 (offline) to 1 (online). The page refreshes every 5 seconds. If the user clicks the X button the field in the database remains 1 (online) although they have left the site. I want the field to be changed to 0 (offline) when they leave my site. I cannot use the onUnload event as it changes the field to offline every time the page refreshes, or they navigate to another page on my site. My idea was to force them to log out by giving them no X button. But it doesnt seem to look that nice.
Any ideas??