Jump to content
xisto Community
Sign in to follow this  
dyknight

Asking Users To Confirm If They Wish To Leave The Page

Recommended Posts

Normally you can't compare a server structured programming language with a client side programming scripting language :) And yes , PHP can only return code (HTML). It can't change nothing. 'Bout JavaScript code you posted , nice. You don't need the form , the onbeforeunload event will work even without it :)) And , remember , this code is useful only for services where you post emails or write important text. It's really really annoying to open a website and when you close it to return "Please come back to my site" :unsure:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.