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

Sometimes we open a page with evil script so that we can't click the cross icon to close.

Is there a trick to close it ?

share|improve this question
In a comment below, you mention a particular problem of closing a tab that's displaying an infinite loop of Javascript alert boxes. Although I didn't find a solution for Firefox 3.0 or Internet Explorer 7, I discovered both Google Chrome 4.0 and Opera 10.01 provide a check box on the alert box itself to help you escape. – Bavi_H Mar 13 '10 at 1:13

You can press [ctrl] + [w] button at the same time to close the current tab.

Much like [mouse wheel] click on the tab

share|improve this answer
No,it won't work when there is always an alert box.. – user11671 Mar 12 '10 at 15:19

If you visit pages with potential evil scripts you should use the extension NoScript to prevent them to run

To close a tab, similarly to middle click or Ctrl+W, you could use Ctrl+F4

share|improve this answer

You can try middle clicking the tab to close it. Middle click and clicking with the scroll wheel are the same on most mouses.

share|improve this answer
But only if you haven't overridden the default behaviour ;) – ChrisF Mar 12 '10 at 12:23
@ChrisF - But why would you?!! That feature is awesome!!! :) – MDMarra Mar 12 '10 at 12:27
in the past I've overridden the middle click at the OS level to perform a double click to see if it helped my (admittedly self diagnosed) RSI. Several reinstalls/rebuilds later and I haven't done that, partly because I now use the mouse left handed and have a better mouse. – ChrisF Mar 12 '10 at 12:38
@ChrisF - Well that's a good reason. I wasn't thinking at the OS level, I was thinking about modding the mid-click behavior for FF only. – MDMarra Mar 12 '10 at 16:00

You must log in to answer this question.

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