Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript button go to url

<button onclick="window.location='http://www.example.com';">Visit Page Now</button>
<script>
    function visitPage(){
        window.location='http://www.example.com';
    }
</script>
<button onclick="visitPage();">Visit Page Now</button>
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript check if array is empty 
Javascript :: jquery get attribute value of parent element 
Javascript :: javascript print subarray from index to indeex 
Javascript :: remove unused dependencies in React Ask Question 
Javascript :: how to use current data in javascript 
Javascript :: get unique values from array of objects javascript 
Javascript :: checkbox click event jquery 
Javascript :: javascript modal close 
Javascript :: how to check if a json object contains a key in jquery 
Javascript :: add element to body javascript 
Javascript :: jquery get first character of string 
Javascript :: detect keypress javascript 
Javascript :: js get url parameter 
Javascript :: localstorage is not defined 
Javascript :: jquery validation on button click 
Javascript :: has decimal javascript 
Javascript :: angular material change placeholder color 
Javascript :: Access-Control-Allow-Origin 
Javascript :: javascript through array 
Javascript :: js self executing anonymous function 
Javascript :: install the same version of package in the package.json 
Javascript :: moment calculate duration 
Javascript :: jquery each data 
Javascript :: import paper material ui 
Javascript :: axios try catch get error status cocxe 
Javascript :: length of elements with display none 
Javascript :: increase-memory-limit not working node 
Javascript :: foreach element in class javascript 
Javascript :: javascript removing smallest number in array 
Javascript :: empty textarea using jquery 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =