I am new here and I am posting my question.
I have a button declared using the anchor link
New Application
On click of this button it is supposed to load page with id page-newApp.
But, I want to perform a check on a certain key in loacalStorage object and if the key doesnt exist, I want it to navigate to a different page.
I already have some code implemented under pagebeforeshow event of page-newApp. I have tried to check for the required condition inside this event. That navigates me to the different page that I want to but briefly shows the page-newApp page.
I have tried using event.preventDefault inside pagebeforeshow event but that doesnt seem to work.
ليست هناك تعليقات:
إرسال تعليق