<html lang="en">
<head>
<meta charset="utf-8">
<title>Javascript window.location.href</title>
</head>
<body>
<script>
function loadHomePage() {
window.location.href = "https://www.tutorialwithexample.com";
}
</script>
<button type="button" onclick="loadHomePage();">Load Home Page</button>
</body>
</html>