Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rememberName(){
- var firstName = document.getElementById("firstName").value;
- var lastName = document.getElementById("lastName").value;
- if (typeof(Storage) !== "undefined") {
- localStorage.firstName = firstName;
- localStorage.lastName = lastName;
- } else {
- alert("This example won't work because your browser doesn't support web storage.");
- }
- loadApiPage();
- }
Add Comment
Please, Sign In to add comment