Closed ezhlobo closed 9 years ago
Correct preventing of link executing in WP8.
Test case:
<a id="link" href="http://www.google.com">link to google</a> <div id="console" style="font-family: Consolas, Courier New, monospace"></div> <script type="text/javascript"> document.getElementById( 'link' ).addEventListener( 'tap', function ( e ) { e.preventDefault(); document.getElementById( 'console' ).innerHTML += '<p>Tap event</p>'; }); </script>
Correct preventing of link executing in WP8.
Test case: