Replace method in window property inside Javascript
Replace method in window property inside JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Testing Javsript</title>
</head>
<body >
<button onclick="func1()" class="hell">SCROLL RIGHT</button><br><br>
<script>
function func1(){
location.replace("http://www.google.com");
}
</script>
</body>
</html>
Comments
Post a Comment
I WOULD APPRECIATE IF YOU LEAVE A COMMENT OR YOUR FEEDBACK HERE !!!