Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can we disable the feature of opening multiple tabs in IE7 or above versions of Internet Explorer? I want that in one window of IE7 or above only one tab should remain active...

share|improve this question

migrated from Sep 12 '12 at 23:53

This question came from our site for professional and enthusiast programmers.

How are you trying to accomplish this? As someone running a website, or someone who's got administrative rights on the machines/domain that this IE7 copy is running inside of? Via GPO you could probably finagle something, as a website operator, no way. – Marc B Sep 12 '12 at 18:57
I am trying to accomplish this via some code which even I dont know right now as I have searched it everywhere but I found no idea ho to implement it..:-( – Rahul Tripathi Sep 12 '12 at 18:59
what kind of code? what language? where will this code run? – Marc B Sep 12 '12 at 19:30
maybe some javascript code....I want to run this code on IIS where my website is hosted – Rahul Tripathi Sep 12 '12 at 19:32
then there is very little you can do to affect a user's browser. at most you can try to detect if a new window/tab is opened, but you can NOT stop the user from doing so. – Marc B Sep 12 '12 at 19:34

Sounds like your moronic supervisor thinks he's in charge of the coolest most amazing site ever written in the history of mankind (paraphrasing Mr. Chen), which is just so awesome that it can force its users' browsers/PCs to behave just the way it wants.

BTW, why exactly does he want to implement this? What will happen if multiple tabs are opened? Sounds like the webapp design itself is broken, and he's attempting to cover it up by forcing users to interact with the site in a pre-determined constrained manner.

share|improve this answer
I can't think of anything that'd break with multiple tabs that wouldn't break with multiple windows too. – Wyzard Sep 13 '12 at 1:13
@Wyzard: Hmm, you're right. Which makes me even more mystified regarding the exact reason for this sort of bizarre requirement. – Karan Sep 13 '12 at 1:27
+1 for citing Raymond Chen. – user3463 Sep 13 '12 at 5:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .