Frage

body tag: <a href="javascript:gotoURL();">T&Cs</a>

head tag:

function gotoURL() {

        window.location = 'someurl.html';

    }

Not working, any idea?

War es hilfreich?

Lösung

Modify the function:

function gotoURL() {
  window.location.href = "someurl.html";
}

Source: How can I make a redirect page in jQuery/JavaScript?

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top