Prompt in JavaScript

Author Topic: Prompt in JavaScript  (Read 3707 times)

Offline itraiderTopic starter

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 45
  • Karma: 1
Prompt in JavaScript
« on: 05-23-2010, 17:30:10 »
What i want is, when a user leaves or clicks back button there should be a prompt which asks him if he wants to visit another site. If he clicks yes then the page should be redirected. If clicks no then the browser closes or goes to back whatever the visitor has clicked. (x or back button)

But it should not happen when user submits the form or visits internal link.

please don't suggest me not to do this, i dont care if its irritating as its for my client so its my humble request to all the js pros to help me asap.


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
774 Views
Last post 02-09-2016, 04:12:35
by chinmay.sahoo
1 Replies
1553 Views
Last post 04-19-2016, 01:48:01
by TomClarke
1 Replies
1163 Views
Last post 07-12-2017, 02:05:30
by mishraviplav7877
4 Replies
2562 Views
Last post 02-10-2017, 04:26:38
by Usman Shani
1 Replies
1121 Views
Last post 04-16-2017, 22:34:41
by wellliving