I have a function that looks like:
function update(id) {
location.href = 'contact.html';
console.log("message");
}
I noticed that the message prints out while on the current page then quickly changes to the new page. Every thing I do is done on the current page even though I put the location.href in the beginning of the function. It's pretty frustrating.
I need to work on the new page using the parameters I passed in.
EDIT: ugh I'm beyond frustrated. Can't believe I just spent over 10 hours on a technical assessment for an interview when it was mentioned this was only supposed to take 3-5 hours. Maybe this job isn't for me.