Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2008
    Posts
    14
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Detecting if user completed ad.

    so basically what i want to do is setup a page, that loads another page inside it(maybe with iframe or something) then it detects if the user loads to another page. my problem is i dont know how to have it detect if they loaded another page and i was thinking maybe checking cookies but i dont know how to or if its possible to check another sites cookies. then once it detects that the user has gone to another page it will pop up an alert box or refresh the page with a message. i also dont know what languages would be best to use to do this.

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    You use JavaScript alert to open up an alert box.

    The rest of what you want to achieve isn't clear to me... if they've gone to another page, you already know they've gone to another page because that page is being requested from your server. Unless you want to pop up an alert when someone tries to leave your site?

    Bad idea if you do, but again, JavaScript is what you want.

  • #3
    New Coder
    Join Date
    Jan 2008
    Posts
    14
    Thanks
    0
    Thanked 2 Times in 2 Posts
    i know how the alert box works, but my problem is that the page in the iframe is not hosted by me and its someone else's site.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •