Expand my Community achievements bar.

Who Me Too'd this topic


Level 1


On anchor tag click function we use event.preventDefault() to prevent the link from opening. This was working fine so far. Recently, we migrated from DTM to Launch and from then the preventDefault method is not working.

In the below sample when we click on the "test page" link it should not change the URL. But it is changing the URL to "#testpage". In the same page please remove the adobe script and run. It won't change the URL.

Sample Page code:

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <a href="#testpage" onclick="gototest(event)">test page</a>
        function gototest(e){
    <script type="text/javascript">_satellite.pageBottom();</script>
Who Me Too'd this topic