<div onClick="javascript:update_status();" class="profile_status" style="cursor: pointer">
<!-- my interesting profile status update here -->
</div>
What’s interesting is that the javascript function update_status() fires in Firefox when I click the div, but in Safari it does not. Any suggestions or ideas?
You don’t need the javascript: in the onclick attribute. An onclick assumes that what follows is a script. I have re-written the snippet below, which now works in all browsers.
<html>
Have you tried typing it correctly as onclick without the capital C. Perhaps Chrome is case sensitive for that command and doesn’t allow you to mistype it with capitals the way other browsers allow in HTML (they all insist on the correct lowercase when you use it in JavaScript).