Advertise here with Carbon Ads

This site is made possible by member support. โค๏ธ

Big thanks to Arcustech for hosting the site and offering amazing tech support.

When you buy through links on kottke.org, I may earn an affiliate commission. Thanks for supporting the site!

kottke.org. home of fine hypertext products since 1998.

๐Ÿ”  ๐Ÿ’€  ๐Ÿ“ธ  ๐Ÿ˜ญ  ๐Ÿ•ณ๏ธ  ๐Ÿค   ๐ŸŽฌ  ๐Ÿฅ”

A short guide to doing

A short guide to doing JavaScript pop-up windows properly: specify your pop-up function in the href attribute instead of the onclick attribute. If you must use the onclick attribute, specify “javascript://” in the href attribute, not “#” because that will take you to the top of the page, a behavior which is not intended or appreciated by the Web user.

Preferred**:
Good:
link
Good: link
Bad bad: link

** Milo writes in with an even better method of doing pop-ups: . Benefits include non-JS browser compatibility and shift/right click compatibility.