Ok i have this script it opens desired page then closes at desired amount of time.
How do i make it redirect to something rather than google.com when closing

<!DOCTYPE html>
<meta charset=utf-8 />
<title>Test Page</title>
  body {
    font-family: sans-serif;

  <p><a href="#" id="target">Start Earning Points</a>; You will will <b>1</b> point per <b>1</b> view.</p>
(function() {

  document.getElementById("target").onclick = function() {
    var wnd = window.open("http://google.com");
    setTimeout(function() {
    }, 15000);
    return false;


<script src="/js/render/edit.js"></script>
<script>var _gaq=[['_setAccount','UA-1656750-13'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)})(document,'script')</script></body>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.