UsageNotes/Javascript

From Facebook Developer Wiki

Revision as of 20:59, 2 October 2009 by Pete Bratach (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Javascript

Facebook has introduced a restricted, but functional version of JavaScript for use on Facebook. Only onClick attributes and the like are allowed directly in the html of an object; All other events must be registered as listeners. No JavaScript, including listeners, will be registered until the user clicks on a FBJS-enabled object. Facebook automatically rewrites variable and functions to appid_functionname, however they have created specific functions to access certain global functions that will not be rewritten.

reference