darkfox Posted March 13, 2013 Share Posted March 13, 2013 hey guys! i need help! i want to make the pages prompt an alert if the user tried to leave the page/textbox that he is currently editing. i want to make it like the facebook type, like if you type something in the post section of facebook then tried to leave or click the back button in the browser.. please help me guys.. can it be done by PHP or Javascript? please let me know and please help me! thanks guys! cheers.. Quote Link to comment https://forums.phpfreaks.com/topic/275615-how-to-prompt-a-leave-the-page-alert-if-the-user-typed-in-the-textbox-and-attempted-to-leave-the-pagelike-facebook/ Share on other sites More sharing options...
Jessica Posted March 13, 2013 Share Posted March 13, 2013 That's JavaScript. You should be able to google it and find plenty of examples. Quote Link to comment https://forums.phpfreaks.com/topic/275615-how-to-prompt-a-leave-the-page-alert-if-the-user-typed-in-the-textbox-and-attempted-to-leave-the-pagelike-facebook/#findComment-1418426 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.