I would like to lock the navigation on the current page until a condition is true. How can I do?
Thanks!!
ciao Viviano
Thanks!!
ciao Viviano
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 27, 2011, 7:50 AM EDT
Well you can use onbeforeunload in javascript and have a confirmation box to prevent navigation, but again i am not sure if that is 100%
Suthish NairRank #92 · 22.8K reputationPosted Oct 27, 2011, 10:07 AM EDT
viviano28 reputationPosted Oct 27, 2011, 12:41 PM EDT
viviano28 reputationPosted Oct 27, 2011, 12:42 PM EDT
thanks
viviano