Here's a (bad) javascript example that has locked up many a web browser.
file:javascript:while (true) {alert('this browser window will never see the light of day. mohahahha - Dr.Evil');}
Usually such code in adverts get pulled quickly.
Bob
Has anyone else noticed the problem when the Verizon banner ad appears (on Yahoo! and other sites)? I experience a 100% CPU load and if I'm not able to run Adblock quickly enough, the CPU/browser (Firefox) locks up. Then I have to use Task Manager to close Firefox. If I can block the ad, then the CPU load immediately drops below 5%. I get the same problem using Internet Explorer. Other than this, I don't have problems with any other site or webpage.
FYI My setup: P4 2.66GHz CPU w/1GB DDR RAM, GF4 Ti4600 Ultra w/128MB VRAM, 2 80GB HDDs, and 1.5Mbit/s DSL.
Through Google, I found a small website (Gizmodo) whose visitors experienced the same problem w/the VZ ad on that site. The ad would cause lock-ups with IE. That site fixed the ad.
I filled out a feedback survey on Yahoo! but it's only a marketing survey. Does anyone know how to let Yahoo know about the problem with the ad? It's interesting that the ad is promoting the faster speeds of Verizon DSL. Maybe VZ is trying to slow down my computer to "show" me that I would have faster service if I switched to VZ? Oops, sorry. I already have Verizon Avenue DSL (a subsidiary of Verizon). I sent an email to VZ customer service also.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic