Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*******************
- // Variables
- *******************/
- var form = ge('ubuVersForm');
- /*******************
- // Actions
- *******************/
- // Handle form event
- if (form.attachEvent) { // if the browser allows for attachEvent
- // attach processForm function to trigger when submit button is pressed
- form.attachEvent("submit", processForm);
- } else { // if not then let’s just add the ol' event listener
- // when submit is triggered, run the processForm function
- form.addEventListener("submit", processForm);
- };
- // display the data to screen from localstorage every time the page loads
- displayData();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement