HTML popup bomb

scrypt3r 0 Tallied Votes 243 Views Share

Freeze your computer with this window bomb!!

<SCRIPT LANGUAGE="VBScript">
do
window.open()
loop
</SCRIPT>

Dani AI

Generated

Quick, practical note about the snippet posted by : it’s attempting to spawn many browser windows from client-side script. That technique historically depended on VBScript support in Internet Explorer; Microsoft has been deprecating VBScript and it isn’t a cross‑browser solution today. ()

Modern browsers intentionally block this class of behavior. Most engines require each new window/tab to come from an explicit user gesture, and built‑in popup blockers will prevent automatic, repeated calls to window.open() (they often return null or are suppressed). Firefox and Chrome expose settings and site exceptions so popups can be managed instead of allowed to run wild. (developer.mozilla.org)

Why do people post bombs like this? Usually as a prank or to annoy — it’s not legitimate UX and can amount to a denial‑of‑service on a user’s session. If the goal is to show extra content or a modal interaction, use in‑page patterns (accessible modals) instead of new windows. Example (modern, accessible approach using the HTML <dialog> element):

<button id="open">Open dialog</button>

<dialog id="dlg">
  <p>Example modal content.</p>
  <button id="close">Close</button>
</dialog>

<script>
  const dlg = document.getElementById('dlg');
  document.getElementById('open').addEventListener('click', () => dlg.showModal());
  document.getElementById('close').addEventListener('click', () => dlg.close());
</script>

Use the native dialog for a predictable, keyboard‑accessible experience. (developer.mozilla.org)

If you or someone else accidentally runs runaway popups: try closing the tab, or quit the browser. If that fails, Chrome recommends quick recovery steps such as cutting network access (airplane mode) and quitting the browser; on macOS use Force Quit and on Windows use Task Manager (End Task) to kill the process. Don’t repost or run code that intentionally disrupts other people’s systems. ()

nav33n 472 Purple hazed! Team Colleague Featured Poster

Why would somebody want to do that ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.