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 ?

link|improve this question

0% accept rate
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
feedback

3 Answers

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

Much like [mouse wheel] click on the tab

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

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

link|improve this answer
feedback

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

link|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
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.