I am developing application for iPhone and I have some hyper link in my application.

I want user to confirm By selecting yes or no that whether he/she is sure to open the link or not.If yes then link should open in mobile safari.

I know how to open link in the mobile safari but not able to show confirmation message.
For opening link I am using this code:

```
 document.addEventListener('click', function(e) {
      if (e.srcElement.target === "_blank" &&   
       e.srcElement.href.indexOf("#phonegap=external") === -1) {
        e.srcElement.href = e.srcElement.href + "#phonegap=external";
      }
    }, true); 

```

Please help me.