Some sample code
Go look at the web developer console.