autocomplete_cc_exp_embeded.html (443B)
1 <!DOCTYPE html> 2 <html> 3 <script> 4 const params = new URLSearchParams(document.location.search); 5 const formId = params.get('formId'); 6 if (formId) { 7 document.addEventListener('DOMContentLoaded', () => { 8 const form = document.querySelector('form'); 9 form.id = formId; 10 }); 11 } 12 </script> 13 <body> 14 <form id="form"> 15 <p><label>Expiration Date: <input id="cc-exp" autocomplete="cc-exp"></label></p> 16 </form> 17 </body> 18 </html>