Example of demonstrating onclick and onload event in inline script