Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

refresh page on div click

<div id="refresh" onClick="refreshPage()">refresh
    <!-- <button type="button" onClick="refreshPage()">Close</button> -->
</div>

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

PREVIOUS NEXT
Code Example
Javascript :: angular input value 
Javascript :: js focus textarea 
Javascript :: js get input from user 
Javascript :: javascript string contains multiple substrings 
Javascript :: get size of json object 
Javascript :: javascript download csv 
Javascript :: js exec find all 
Javascript :: sort array of objects javascript by date 
Javascript :: js sort array of objects 
Javascript :: check if string matches regex js 
Javascript :: push items to associative array jquery 
Javascript :: How to create react app with yarn, npx or npm 
Javascript :: how to check if a folder exist if not then create nodejs 
Javascript :: generate random integer javascript 
Javascript :: fs.writefilesync in nodejs 
Javascript :: react select with react hook form cotroller 
Javascript :: npm for node types 
Javascript :: vue shorthand 
Javascript :: xmlhttprequest get request 
Javascript :: sequelize include only 
Javascript :: two decimel javascript 
Javascript :: how to define args using param discord.js 
Javascript :: prop-types install npm 
Javascript :: to capital case javascript 
Javascript :: javascript es6 check if index exists 
Javascript :: react array find index 
Javascript :: Tribonacci Sequence in JavaScript 
Javascript :: jquery get element max height 
Javascript :: javascript get date of the week 
Javascript :: react on focus out 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =