F
finerrecliner
i'm trying to make an action listener that will display an alert box
when the user clicks anywhere on the page once, and then go back to
normal mouse behavior.
i have this:
<html><script type="text/javascript">
document.addEventListener('click',hello(),false);
function hello()
{
alert("hello world!")
}
</script></html>
but all it does is show the alert box upon the page loading, and does
nothing when i click.
i only care about it working in firefox 1.5+
thanks for the help.
when the user clicks anywhere on the page once, and then go back to
normal mouse behavior.
i have this:
<html><script type="text/javascript">
document.addEventListener('click',hello(),false);
function hello()
{
alert("hello world!")
}
</script></html>
but all it does is show the alert box upon the page loading, and does
nothing when i click.
i only care about it working in firefox 1.5+
thanks for the help.