I have the following code.... When the page is loaded myFunc() is called even if I dont click in my div. Why? The function declared "inline" is not triggered...hmmmm........
<div id="map" style="background: green; height: 100px"></div>
<script type="text/javascript">
function myFunc() {
alert("allways triggered when page loads...");
};
$(document).ready(function() {
$("#map").click(myFunc());
$("#map").click(function() { alert("not triggered") });
});
</script>