Use location.reload()
:
$('#something').click(function() { location.reload(); });
The reload()
function takes an optional parameter that can be set to true
to force a reload from the server rather than the cache. The parameter defaults to false
, so by default the page may reload from the browser’s cache.
Related Posts:
- How can I refresh a page with jQuery?
- How can I refresh a page with jQuery?
- enabling right click:
- Cross-Origin Read Blocking (CORB)
- Button that refreshes the page on click
- How do you use the ? : (conditional) operator in JavaScript?
- Generate unique random numbers between 1 and 100
- How to append something to an array?
- How to format a JavaScript date
- How to prevent the “Confirm Form Resubmission” dialog?
- Sorting an array of objects by property values
- What is the JavaScript version of sleep()?
- How to re-enable right click so that I can inspect HTML elements in Chrome?
- JavaScript sleep/wait before continuing [duplicate]
- Random gradient background color
- Parse JSON in JavaScript? [duplicate]
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- No ‘Access-Control-Allow-Origin’ header is present on the requested resource—when trying to get data from a REST API
- JavaScript Array splice vs slice
- How does Access-Control-Allow-Origin header work?
- How to replace all occurrences of a string in JavaScript
- Define a global variable in a JavaScript function
- “SyntaxError: Unexpected token < in JSON at position 0"
- How to change CSS using jQuery?
- How to properly use jsPDF library
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- How do I link a JavaScript file to a HTML file?
- Loop through an array in JavaScript
- How do I redirect to another webpage?
- What is the difference between React Native and React?
- How do I redirect to another webpage?
- Cross-Origin Read Blocking (CORB)
- jQuery append() vs appendChild()
- How to replace innerHTML of a div using jQuery?
- Uncaught ReferenceError: $ is not defined?
- Uncaught ReferenceError: jQuery is not defined [duplicate]
- What does [object Object] mean? (JavaScript)
- How do I check whether a checkbox is checked in jQuery?
- syntax error: unexpected token <
- Error OPTIONS net::ERR_CONNECTION_REFUSED
- ReferenceError: $ is not defined
- Uncaught ReferenceError: jQuery is not defined [duplicate]
- What does [object Object] mean?
- Remove class using jQuery
- How do I check whether a checkbox is checked in jQuery?
- jQuery document.createElement equivalent?
- How to make history.back() without getting a warning on the browser to reload the page?
- JQuery – $ is not defined
- Cannot read property ‘push’ of undefined when combining arrays
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- Toggle show/hide on click with jQuery
- convert Hsl to rgb and hex
- How to set time delay in javascript
- Pure JavaScript equivalent of jQuery’s $.ready() – how to call a function when the page/DOM is ready for it [duplicate]
- JQuery – $ is not defined
- Cannot read property ‘push’ of undefined when combining arrays
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- Automatically pausing html5 video as the ‘next’ button is pressed (javascript/ jquery)
- jQuery .on(‘change’, function() {} not triggering for dynamically created inputs
- How to create a jQuery function (a new jQuery method or plugin)?
- jQuery: Wait/Delay 1 second without executing code
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- Failed to load resource: the server responded with a status of 500 (Internal Server Error) in Bind function
- Scroll to an element with jQuery
- Download File Using JavaScript/jQuery
- How to solve ‘Redirect has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header’?
- How to deal with net::ERR_SSL_PROTOCOL_ERROR?
- How can I scroll to an element using jQuery?
- jQuery.click() vs onClick
- jQuery setTimeout() Function [duplicate]
- jQuery Get Selected Option From Dropdown
- Disabling and enabling a html input button
- Scroll to an element with jQuery
- Download File Using JavaScript/jQuery
- Check if checkbox is checked with jQuery
- Getting Error “Form submission canceled because the form is not connected”
- How to add jQuery code into HTML Page
- jQuery equivalent of JavaScript’s addEventListener method
- How can I get the data-id attribute?
- document.getElementById vs jQuery $()
- Check if checkbox is checked with jQuery
- How to import jquery using ES6 syntax?
- How to filter an array/object by checking multiple values
- What does jQuery.fn mean?
- Getting Error “Form submission canceled because the form is not connected”
- Is there a link to the “latest” jQuery library on Google APIs?
- Setting “checked” for a checkbox with jQuery
- Nested JSON objects – do I have to use arrays for everything?
- How to find the sum of an array of numbers
- Uncaught TypeError: Cannot read property ‘length’ of undefined
- Adding an onclick function to go to url in JavaScript?
- Jquery : Refresh/Reload the page on clicking a button
- Uncaught SyntaxError: Invalid or unexpected token
- Check if element exists in jQuery
- Checking a Url in Jquery/Javascript
- Bootstrap Dropdown menu is not working
- Infinite Scrolling in Asp.Net MVC with jQuery / AJAX Issues
- My javascript is returning this error: $.ajax is not a function
- ajax jquery simple get request
- What are the difference between $(document).bind(‘ready’, function) and $(document).ready(function() {})