1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Prompt in JavaScript

Discussion in 'JavaScript' started by jijihuqw, Jul 13, 2011.

  1. #1
    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.
     
    jijihuqw, Jul 13, 2011 IP
  2. soniasyril

    soniasyril Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <a href="javascript: return Redirect();">Back</a>
     
    soniasyril, Jul 14, 2011 IP