4 ms·
OK, but websites have used alert() since the dawn of time to trap you on the site with an endless stream of annoying modal dialogs. If this ever catches on, br
by pak 16y ago
OK, but websites have used alert() since the dawn of time to trap you on the site with an endless stream of annoying modal dialogs. If this ever catches on, browsers will do exactly what most have done with alert(): if the webpage calls it more than X times a second, the browser asks you, "Do you want to allow Site X to continue to screw with your location bar?" and you can say No.
- rflrob 16y agoIt isn't too likely to catch on, I think. Unlike the modal alert()s, changing the address bar doesn't prevent one from just closing the tab that has the page in it. Sure, you lose whatever history got you to that site, but I find my history is rarely more than 5-10 links deep, since I tend to spawn new tabs rather than using the current one.
- ItsBilly 16y agoIt does for me anyway, in Chrome. It makes it nearly impossible to close the tab.
- getsat 16y ago> browsers will do exactly what most have done with alert() In case anyone was wondering why pak said "most"... this is somewhat scary: https://bugzilla.mozilla.org/show_bug.cgi?id=59314 https://bugzilla.mozilla.org/show_bug.cgi?id=59314