Facebook Javascript (FBJS) Code Sample: Hello World!

Following is a FBJS code sample to create a “Hello World!” program using Javascript with the Facebook specifications.
This will display a link ‘Hello World!’ that will change the color and the background randomly when clicked.
<a href=”#” onclick=”do_colors(this); return false”>Hello World!</a>
<script>
<!–
function random_int(lo, hi) {
return Math.floor((Math.random() * […]