Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to reload page on button click in javascript

<button type="button" onClick="refreshPage()">Close</button>

<script>
function refreshPage(){
    window.location.reload();
} 
</script>
Comment

how to refresh page on click of button

<button type="button" onClick="refreshPage()">Close</button>


<script>
function refreshPage(){
    window.location.reload();
} 
</script>
   
Comment

how to make button reload the page use javascript

<button onclick="window.location.reload();">Reload Page</button>
Comment

reload pageon button click

<button type="button" onClick="window.location.reload();">Close</button>
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to add two number using jqueryu 
Javascript :: js canvas draw polygon 
Javascript :: split sentence including special characters javascript 
Javascript :: jquery reset select2 
Javascript :: angular component between tags 
Javascript :: jquery get checked checkbox values array 
Javascript :: click anywhere and div hide javascript 
Javascript :: js remove duplicates from array 
Javascript :: jquery change font color 
Javascript :: How do I check if an element is hidden in jQuery 
Javascript :: sort date according to months in javascript 
Javascript :: for char in string javascript 
Javascript :: npx create next app 
Javascript :: how to enable and disable href in javascript 
Javascript :: blood group regex 
Javascript :: jquery grid get all selected row 
Javascript :: parse json express 
Javascript :: js get object by id from array 
Javascript :: js validate date object 
Javascript :: chartjs remove legend 
Javascript :: To install the latest version of React: 
Javascript :: react map array limit 
Javascript :: javascript regex number only 
Javascript :: javascript hex to binary 
Javascript :: jquery remove all tr from table 
Javascript :: javascript max safe integer 
Javascript :: how to generate 6 random alphanumerals in js 
Javascript :: create an array of numbers by numbers range in angular 
Javascript :: javascript create div with class 
Javascript :: how to set view engine in express 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =