• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no way to get around that
 
Dushyant Bhardwaj
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eric,
Thanks for your reply.
Regards,
Dushyant Bhardwaj
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic