Trying to use return false to not allow link to be accessed after onclick event is fired.


T

Terry

Hi people.

I took on a job where the client wanted his banner to show up at the
bottom of the browser 30 seconds after the document has loaded. He
also wanted the ability for the banner to be closed if the user clicks
on close.

I tried <a href="" onclick='closeAd(); return false'>Close</a>

but with no luck the link is still accessed and the page is therefore
reloaded.

The url is http://theamazing.onlinewebshop.net/traditional/traditional-kitchens.html

Thanks,
Terry
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top