Latest Tech News View More
Get our toolbar!
Recent Articles

Javascript to Auto select all friends while inviting for Event or Fan page.


Selecting all friends to invite to like your Facebook page or for any event is a real hard work, specially if you have a long friend list like me. You need to check, check box for every friend one by one, say 1000 check boxes for 1000 friends. But using the following method you can do it just in seconds...


Follow the steps:
1. While inviting your friends, you will see a window like the following one:






Now scroll down till the end of the list, because your all friends are not loaded yet in the window shown. If you dont do so, then only friends that are loaded till, will only get selected after using javascript.




2. Now copy the following script and paste it into the URL bar.


var x=document.getElementsByTagName("input");for(var i=0;i<x.length;i++) {if (x[i].type == 'checkbox') {x[i].click();}}; alert('Done, all your friends have been selected');








3.  After pasting write 'javascript: ' in front of the upper script. Now it should look like  the following.


javascript:var x=document.getElementsByTagName("input");for(var i=0;i <x.length;i++) {if (x[i].type == 'checkbox') {x[i].click();}}; alert('Done, all your friends have been selected');






Note: You could directly copy and paste the script of step 3rd, but for security purpose some browsers automatically remove  'javascript: ' from the script and paste the remaining only. 


4. After pasting, press enter, as soon as you do it, you will get a message that 'all friends all selected', and now you can send the invitation.




If you want more information and tutorials about Facebook, check out other posts under category Facebook.


author

Written by:

Surbhi is Founder of Techbyte4u.com. Follow her on Twitter or email her

Bookmark and Share

0 comments for this post

Leave a reply

TechByte4U on Facebook
Random Posts
Recent Posts
Popular Posts
Daily Stats
Top Commentators
Recent Comments
Our Sponsor