Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to stop opening a new Window in IE(Urgent !!!)

 
Dushyant Bhardwaj
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
How can I stop opening a new window in IE because
my session gets transferred when I open a new window.
1. I want to restrict
File -> New -> Window
2. I am already handling CTRL+N using JavaScript sucessfuly.
Is there any way by which handle 1 using JavaScipt or other way.
Thanks in advance.

Regards
Dushyant Bhardwaj
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no way to get around that
 
Dushyant Bhardwaj
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric,
Thanks for your reply.
Regards,
Dushyant Bhardwaj
 
Yuriy Fuksenko
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you could do, is try to close the window user just opened (user will get 'Do you want to close dialog'), or redirect user to a different page, saying "You can't do that";
This code works in IE.
Downside - when your page loads, new window will be opened and closed, Popup removers may cause code to not work and I don't think another IE will be able to see the same page at the same time, even if it opened not through
Window-New.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic