May 01, 2011

Selecting every checkbox on current page - Javascript

This Javascript snippet can be used to selected every checkbox on a page. Use ? On Firefox, I used it to select all spam messages which were clogging my junk folder. I launched scrathpad ( Shift+F4 ) and pasted the Js snippet, then ran the script ( CTRL+R) and all check boxes were selected. Then I just sat back and hit the "Trash forever" button. Obviously you can use it for something else.

No comments:

Post a Comment