javascript popup window with no X (close button)

hello,
i'm developing an intranet system for users here where i work, i'm trying to create an asp driven order entry system. I would like to remote the x (close window) button from the browser, is there a way to do this? I want to do this to force the user to logout instead of x'ing out the window. if it has to be created through a popup window that is fine, any method should work.. thanks!

LVL 4
LTY83Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sgalzinCommented:
hi,

i know how to do that for internet explorer only : would that interest you ? something like this ?

http://www.doublespiral.net/andalousie/vpa.html

(click on the picture to see an example of such a window)

stephane.
0
LTY83Author Commented:
ie should work, however all browers would be better in teh case ie is corrupt and we need to use mozilla or netscape,, but this should be ok
0
LTY83Author Commented:
hmm it appears that window still has an x, however maybe its because i have newest IE browser?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

LTY83Author Commented:
btw if that is you you are stunning.. :)
0
sgalzinCommented:
thanks ;-)
my girlfriend & myself in spain !

i actually put the cross there, you can choose not to have it or put the logout code behind the action, as you wish : it's an image.

to do that, here's the trick : open a window as fullscreen then resize it :
 var w = window.open ( '', '', 'fullscreen=yes,resizable=yes' );
 w.resizeTo ( 300, 200 );

hope that helps,

stephane.
0
sgalzinCommented:
ps : i am sure that won't work in netscape or mozilla as this is (kind of) a security hack...
0
LTY83Author Commented:
heh sorry buddy was talkin about yer gf, i'm not sure if this works tho, in my browser it still shows the x, i have the newest version of ie as well
0
justinbilligCommented:
There is no way to accomplish what your asking, the closest thing you'll get is what sgalzin has already suggested
0
arantiusCommented:
No you cannot do this.

How would you like it for nefarious sites around the world to open windows you cannot close?  Plain and simple, especially with better browsers like Mozilla, the web page does not have this kind of control on the browser.

If you want to control things like this, you need to write a native windows application, not a web page.  In the example posted, true, the window takes up the whole screen and moves the title bar (and thus the x button) off the screen, but you can still hit Alt-F4 to close it.
0
minichickenCommented:
<script language="javascript">
window.open('http://www.mydomain.com','popup', 'fullscreen= yes, left = 0, top =0, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=no');
</script>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LTY83Author Commented:
beautiful minichicken, u rock,
0
minichickenCommented:
cool :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.