0

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

head tag:

function gotoURL() {

        window.location = 'someurl.html';

    }

Not working, any idea?

variable
  • 8,262
  • 9
  • 95
  • 215

1 Answers1

3

Modify the function:

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

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

Community
  • 1
  • 1
chris97ong
  • 6,870
  • 7
  • 32
  • 52