Skip to content
Casey Watts edited this page Feb 2, 2014 · 1 revision

We'll be going through in the order that the article "A re-introduction to javascript" has. You should probably use this article as a reference. For example What is the syntax for an if statement in javascript again?

The Resources page has some more thorough Javascript articles that explain more.

To determine what "class" something is, you can use variablename.constructor. (Technically, Javascript doesn't have classes, but rather "object prototypes")

The example page we used with javascript written to the HTML page is here:

##Bookmarklets The Rules for Bookmarklets article is pretty useful.

The example bookmarklets we used are here:

  • Select All Facebook Friends for an Event(source)
javascript:var x=document.getElementsByTagName("input");for(var i=0;i<x.length;i++) {if (x[i].type == 'checkbox') {x[i].click();}}; alert('Done: please scroll and repeat until all your friends have been selected');
  • Pink Facebook
javascript:document.getElementById("blueBar").style.background = "pink";

The website we used to properly indent the javascript is here:

Clone this wiki locally