Word of Caution

The tricks shown in this chapter, especially when combined with those from the next chapter, allow you to more or less redefine the way the browser works. With great power comes great responsibility. It can be tempting to add all kinds of bling-bling and custom behavior to a page, but keep in mind that people expect basic rules to hold when they are browsing the Internet. Things like disabling the right-click context menu or messing with the back button are just obnoxious and bad style.

Get Eloquent JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.