capture_address_on_page_navigation.html (2385B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Form Autofill Address Demo Page</title> 6 </head> 7 <body> 8 <h1>Form Autofill Address Demo Page</h1> 9 <form id="form"> 10 <p><label>givenname: <input type="text" id="given-name" name="given-name" autocomplete="given-name" /></label></p> 11 <p><label>familyname: <input type="text" id="family-name" name="family-name" autocomplete="family-name" /></label></p> 12 <p><label>organization: <input type="text" id="organization" name="organization" autocomplete="organization" /></label></p> 13 <p><label>streetAddress: <input type="text" id="street-address" name="street-address" autocomplete="street-address" /></label></p> 14 <p><label>addressLevel2: <input type="text" id="address-level2" name="address-level2" autocomplete="address-level2" /></label></p> 15 <p><label>addressLevel1: <input type="text" id="address-level1" name="address-level1" autocomplete="address-level1" /></label></p> 16 <p><label>postalCode: <input type="text" id="postal-code" name="postal-code" autocomplete="postal-code" /></label></p> 17 <p><label>country: <input type="text" id="country" name="country" autocomplete="country" /></label></p> 18 <p><label>tel: <input type="text" id="tel" name="tel" autocomplete="tel" /></label></p> 19 <p><label>email: <input type="text" id="email" name="email" autocomplete="email" /></label></p> 20 <p><input type="submit" /></p> 21 </form> 22 <!-- Handled as page navigation --> 23 <p><button id="historyPushState" onclick="history.pushState({},``,``)">history.pushState</button></p> 24 <p><button id="historyReplaceState" onclick="history.replaceState({},``,``)">history.replaceState</button></p> 25 <p><button id="locationHref" onclick="location.href = `about:blank`">window.location.href</button></p> 26 <p><button id="locationReplace" onclick="location.replace(`about:blank`)">location.replace</button></p> 27 <!-- Not handled as page navigation --> 28 <p><button id="locationReload" onclick="location.reload()">location.reload</button></p> 29 <p><button id="historyGo" onclick="history.go(-1)">history.go</button></p> 30 <p><button id="historyBack" onclick="history.back()">histotry.back</button></p> 31 </body> 32 </html>