capture_creditCard_on_page_navigation.html (1386B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Form Autofill Credit Card Demo Page</title> 6 </head> 7 <body> 8 <h1>Form Autofill Credit Card Demo Page</h1> 9 <form id="form"> 10 <p><label>Name: <input id="cc-name" autocomplete="cc-name"></label></p> 11 <p><label>Card Number: <input id="cc-number" autocomplete="cc-number"></label></p> 12 <p><label>Expiration month: <input id="cc-exp-month" autocomplete="cc-exp-month"></label></p> 13 <p><label>Expiration year: <input id="cc-exp-year" autocomplete="cc-exp-year"></label></p> 14 <p><label>CSC: <input id="cc-csc" autocomplete="cc-csc"></label></p> 15 </form> 16 <p><button id="historyPushState">history.pushState</button></p> 17 <p><button id="windowLocation">window.location.href</button></p> 18 <p><button id="windowOpen">Window.open</button></p> 19 <script> 20 const historyButton = document.getElementById("historyPushState") 21 historyButton.addEventListener("click", () => { 22 history.pushState({},"","") 23 }) 24 25 const windowLocationButton = document.getElementById("windowLocation") 26 windowLocationButton.addEventListener("click", () => { 27 window.location.href = "about:blank" 28 }) 29 </script> 30 </body> 31 </html>