Results 1 to 2 of 2

Thread: Exit Popup For .php

  1. #1
    Join Date
    Dec 2007
    Location
    Brooklyn,New York
    Posts
    1

    Exit Popup For .php

    Hi All,
    My site is basiclally in .php.
    Most of it was made with a software program.
    I own an article directory and would like to get an exit popup program for my website.
    My web address is: [link removed]
    Please visit the site and tell me what you think,ok?
    Thanks.
    Last edited by alvo; 07 Dec 2007 at 05:23 PM. Reason: links not allowed for new members

  2. #2
    Join Date
    Dec 2004
    Posts
    2,788
    You're new here, so let me remind you about some rules. First is, new members don't get to put links in their posts. There are exceptions, for instance if you are asking for a site review, then obviously a link is required. They are also permitted if the link is necessary to answer a question (such as, "why is there a big blank space on the right of my page?"). Other than that, you have to post 25 times (starting a topic or replying to one) and then links are permitted, and you can also add a signature to your posts with a link it that as well. This is to prevent spamming by people that come by with the goal of posting links. In this case it appears that's not what you're doing, but the link still isn't allowed at this time. However posting the same question more than once is considered spamming, so please don't do that again. Just put it in the category it best fits.

    An exit pop up should be done with a client side scripting language such as Javascript and not a server side one like PHP. The reason is simple. When you go to a web page, your browser initiates a connection with the server and sends the request for the page. The server responds and sends the page data and then the connection is closed. This means that the browser and the server have no further communication with each other unless a new request is sent, at which time a new connection is made. Because of this, when you exit a page the server doesn't know it. However you browser will know when you close the window or try to navigate to another URL, and so using a script on the browser side will allow you to detect this action and use that to send a request to the server for the pop up window.

    You should be able to find a pre-made script that will do this for you, either at http://hotscripts.com or with a Google search for something like javascript exit popup window.

Similar Threads

  1. posting hidden form data to a popup window
    By simora in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 26 May 2007, 03:47 AM
  2. Pop up in a popup
    By misterkyo in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 31 Aug 2005, 05:53 AM

Posting Permissions

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