Link to home
Start Free TrialLog in
Avatar of giveindia
giveindia

asked on

Implement an exit survey

We wish to implement an exit survey on the website. We have prepared the survey as a Google Form. And would like it implemented as follows -
1. It should appear over the site in a pop-up window.
2. It should appear when a person already on the website, closes the site.
3. It should appear when a person already on the website, types another URL in the address bar.
4. It should appear when a person already on the website, clicks on a link on the site that leads to another site.

Thanks,
Aditya
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

giveindia, take a quick look at forsee and "see" how they are doing this.  http://www.foreseeresults.com/

Doing a pop over/under is going to be tough because browsers will block them.  You could do a modal which is actually part of the page and will "float" on top of the page.  That could be something enticing to click on, "We want your input".    I think you will need to capture people while they are still on the site.  

If the average time on your site is 2 minutes, then perhaps wait 45 to 60 seconds to offer the survey.
Avatar of giveindia
giveindia

ASKER

That is not what I am looking for. Please go ahead and close this out.

Thanks,
Aditya
ASKER CERTIFIED SOLUTION
Avatar of giveindia
giveindia

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I don't believe what you are looking for is possible because of the way browsers handle pop overs.
That is not what I am looking for. Please go ahead and close this out.

Thanks,
Aditya
Taking the example from https://developer.mozilla.org/en-US/docs/Web/API/Window.open and demo http://jsbin.com/AqIhiJ/1/edit?html,output you can spawn a new window with javascript.  However, this will spawn a new tab   <a target="_blank" href="http://google.com">click me</a>

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
  <script type="text/javascript">
var windowObjectReference = null; // global variable

function openFFPromotionPopup() {
  if(windowObjectReference == null || windowObjectReference.closed)
  /* if the pointer to the window object in memory does not exist
     or if such pointer exists but the window was closed */

  {
    windowObjectReference = window.open("http://www.spreadfirefox.com/",
   "PromoteFirefoxWindowName", "resizable,scrollbars,status");
    /* then create it. The new window will be created and
       will be brought on top of any other window. */
  }
  else
  {
    windowObjectReference.focus();
    /* else the window reference must exist and the window
       is not closed; therefore, we can bring it back on top of any other
       window with the focus() method. There would be no need to re-create
       the window or to reload the referenced resource. */
  };
}
</script>
<title>JS Bin</title>
</head>
<body>
  <p><a
 href="http://www.spreadfirefox.com/"
 target="PromoteFirefoxWindowName"
 onclick="openFFPromotionPopup(); return false;" 
 title="This link will create a new window or will re-use an already opened one"
>Promote Firefox adoption</a></p>
</body>
</html>

Open in new window


<!DOCTYPE html>
<html>
<head>
  <script type="text/javascript">
var windowObjectReference = null; // global variable

function openRequestedPopup(strUrl, strWindowName) {
  if(windowObjectReference == null || windowObjectReference.closed) {
    windowObjectReference = window.open(strUrl, strWindowName,
           "resizable,scrollbars,status");
  } else {
    windowObjectReference.focus();
  };
}
</script>
<meta charset=utf-8 />
<title>padas</title>
</head>
<body>
  <!-- target blank does not work -->
  <a target="_blank" href="http://google.com">click me</a>
  <!-- this sample will open a new window -->
  <p><a
 href="http://www.spreadfirefox.com/"
 target="PromoteFirefoxWindow"
 onclick="openRequestedPopup(this.href, this.target); return false;"
 title="This link will create a new window or will re-use an already opened one"
>Promote Firefox adoption</a></p>
 
</body>
</html>

Open in new window