Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript link to another page

window.open("http://mywebsite.com/home.html")
Comment

javascript link to page

<html>    
  <body> 
    
    <input type="submit" onClick="myFunction()"/>
    <script>
      function myFunction() {
        window.location.href="http://programminghead.com";
      }
    </script>
    
  </body>    
</html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: express js redirect to url 
Javascript :: redirect react js 
Javascript :: redirect to another page using javascript 
Javascript :: redirect link javascript 
Javascript :: redirect function in javascript 
Javascript :: Return A Random Number within a range of numbers 
Javascript :: react form on submit 
Javascript :: saving json file python 
Javascript :: javascript create image 
Javascript :: browserrouter react 
Javascript :: datetime to date in js 
Javascript :: multiple connections to mongoose 
Javascript :: javascript set readonly property 
Javascript :: Javascript prime number check 
Javascript :: json parse array local storage 
Javascript :: flutter text with icon 
Javascript :: javascript remove first character from string 
Javascript :: hide and show in angular 8 
Javascript :: image not showing js 
Javascript :: how to create a button with react 
Javascript :: how to extract year from utc in javascript 
Javascript :: how to add two elements in one path in react router v6 
Javascript :: react native android run 
Javascript :: last position of array javascript 
Javascript :: javascript object dont sort 
Javascript :: vuejs set 
Javascript :: javascript: get the url without query string 
Javascript :: js get part of array 
Javascript :: mock window jest js 
Javascript :: document.write multiple lines 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =