Using a click listener when a button has have a settable ID Your button ID Your handler Using a click listener when a button doesn’t have a settable ID Your buttons link (its href=) Your handler
Category: Links
Display items from clicking link
Display a single item Display multiple items on a page Give your items a class Your link to show the hidden items
Javascript in a link
Running javascript in a link Just using javascript when clicked You can also use this, but the need for the “javascript:” marker is arguably annoying when adding multiple javascript commands: Using javascript in addition to a href Using multiple javascript commands Just add them one after the other Using href=”#” or href=”javascript:void(0)” to do nothing […]
Redirecting
Redirect To A New Page Redirect With POST Data Using A Hidden Form Include the hidden form with the values you want to send on the page: Then in your javascript use Go Back To Previous Page
