Archive for July, 2009

FAQ(Javascript) : User confirmation on close button of browser

Problem: On clicking the close button of browser ask for user confirmation with a custom message
Solution: Use the window.onbeforeunload method. This method expects a string value. This string will be displayed to user along with the default string. Default string that is displayed to user is:
Are you sure you want to navigate away from this [...]

Read the rest of this entry >>

FAQ, javascript
9,565 spam comments
blocked by
Akismet