load url onclick javascript code example Example: load url onclick javascript onclick="location.href='pageurl.html'";