Possible to stop javascript execution on a page?
I just ran into a website that pretends to be a virus scanner scanning your machine.
No big deal, I hit 'back' to depart the page, and, as expected, a confirm box pops up saying "are you sure you want to leave? cancel/ok".
I click 'cancel', then the horrifying happens. An alert box pops up saying 'please install this', with just an ok button. Clicking 'ok' takes you back to the confirm 'cancel/ok' box.
Now both boxes are modal, so I can't do anything with safari while they're up, and the only way out is to click 'ok' on the 'cancel/ok' box (or kill safari, but I don't really want to do that since I have several tabs open across two windows).
So, I unplugged my ethernet, and clicked 'ok', but I'm wondering, is there anyway to kill a modal in safari and/or stop javascript from executing?
I think if I'd been using firefox, I may have been able to kill it through firebug, but I'm not 100% sure.
No big deal, I hit 'back' to depart the page, and, as expected, a confirm box pops up saying "are you sure you want to leave? cancel/ok".
I click 'cancel', then the horrifying happens. An alert box pops up saying 'please install this', with just an ok button. Clicking 'ok' takes you back to the confirm 'cancel/ok' box.
Now both boxes are modal, so I can't do anything with safari while they're up, and the only way out is to click 'ok' on the 'cancel/ok' box (or kill safari, but I don't really want to do that since I have several tabs open across two windows).
So, I unplugged my ethernet, and clicked 'ok', but I'm wondering, is there anyway to kill a modal in safari and/or stop javascript from executing?
I think if I'd been using firefox, I may have been able to kill it through firebug, but I'm not 100% sure.
mac book pro, Mac OS X (10.5.8)