Prompt in JavaScript

Author Topic: Prompt in JavaScript  (Read 4575 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
1494 Views
Last post 02-09-2016, 04:12:35
by chinmay.sahoo
1 Replies
2721 Views
Last post 04-16-2017, 22:34:41
by wellliving
1 Replies
2562 Views
Last post 04-13-2019, 00:05:06
by supergolfer
7 Replies
8098 Views
Last post 12-21-2020, 00:50:14
by Rattan11
1 Replies
1252 Views
Last post 09-30-2020, 07:31:32
by Ensafeindia