Monday 15 May 2017

How to open a webpage on click with jQuery ( without anchor tag )

<html>
<head>
<title>linked</title>
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
 <script>
$(document).ready(function(){
    $('.nv').click(function() {
    window.location.href='http://google.com';
    });
    });
</script>
</head>
<body>
<button class="nv">click here</button>
</body>
</html>