Jquery Alert Box not working correctly

Oops, sorry haven’t actually tried it in the browser. The problem is that any values in the session storage will be stored as strings, so you could either check

if (showMessage === 'true') {
  alert('...');
  sessionStorage.showMessage = false;
}

or delete that property altogether like

if (showMessage) {
  alert('...');
  delete sessionStorage.showMessage;
}

@m3g4p0p

Works beautiful. Thank you.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.