i wonder why the browser displays "logged in" without me having clicked on the link i id-tagged with clickhere. it displays it everytime i refreshes the page.
<script type="text/javascript">
$(document).ready(function(){
function login(){
alert("logged in");
}
$("#clickhere").click(login());
});
</script>
i just want it to be displayed when i click on the link.
what is the problem?