If you face a website with lot of checkboxes to check but they did not implement a ‘check all’ button. You can copy and past this code into your browser’s URL address:
1 |
javascript:function check_all_in_document(doc){var c=new Array();c=doc.getElementsByTagName('input');for(var i=0;i<c.length;i++){if(c[i].type=='checkbox'){c[i].checked=true;}}}check_all_in_document(window.document);for(var j=0;j<window.frames.length;j++){check_all_in_document(window.frames[j].document);} |
Note that sometimes your browsers (Chrome in my case) scizes the ‘javascript:
‘ part from such addresses. You need to type ‘Javascript:
‘ manually
Leave a reply