Mobile app version of vmapp.org
Login or Join
Correia994

: The cause of the problem is the ad. It has a link to close itself (Fermer). In the onclick event of the link there is a function call: fermeture(). The href is "#". But there is no return

@Correia994

the cause of the problem is the ad. It has a link to close itself (Fermer). In the onclick event of the link there is a function call: fermeture(). The href is "#". But there is no return false in the onclick event, which means, the page www.wanimo.com/fr/chiens/coussin-matelas-tapis-pour-chien-sc28/tapis-plat-urban-chic-sf7263/# is loaded.

To solve this problem, the ad window should look like this:
<a href="#" onclick="fermeture(); return false">Fermer</a>

In an onclick event of a link "return false" means that the page will not redirected to the url in the href attribute, but it will stay on the current page, as if nothing had happened.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Correia994

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme