Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <head> | |
| 3 <title>Block alert from blocked popup?</title> | |
| 4 <script> | |
| 5 if (location.search.indexOf("popup") != -1) { | |
|
Finnur
2008/11/11 07:30:03
The indentation here is weird. Same below...
| |
| 6 document.write("This should still be inside the tab, but it is now in " + | |
|
Finnur
2008/11/11 07:30:03
Not conforming to 80 chars? :)
| |
| 7 "a new window!"); | |
| 8 alert("The popup has been \"popped out\" of the tab"); | |
| 9 } else { | |
| 10 window.open("?popup"); | |
| 11 } | |
| 12 </script> | |
| 13 </head> | |
| 14 <body> | |
| 15 <h1>Block alert from blocked popup?</h1> | |
| 16 </body> | |
| 17 </html> | |
| OLD | NEW |