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?
- Parse JSON in JavaScript? [duplicate]
- How do I redirect to another webpage?
- How do I check whether a checkbox is checked in jQuery?
- Cannot read property ‘push’ of undefined when combining arrays
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- Infinite Scrolling in Asp.Net MVC with jQuery / AJAX Issues
- What are the difference between $(document).bind(‘ready’, function) and $(document).ready(function() {})
- How to use php code in javascript
- How to read xml file contents in jQuery and display in html elements?
- How can I print using JQuery
- Loading local JSON file
- How to check all checkboxes using jQuery?
- Rotate image with javascript
- keycode 13 is for which key
- Equivalent of jQuery .hide() to set visibility: hidden
- How can I get the last character in a string?
- Uncaught TypeError: Cannot read property ‘name’ of undefined
- How to make a simple image upload using Javascript/HTML
- Dynamically load JS inside JS
- How to add an object to an array
- this vs $(this)
- How to open a URL in a new Tab using JavaScript or jQuery?
- Extract hostname name from string
- how to get the value of a textarea in jquery?
- Why define an anonymous function and pass it jQuery as the argument?
- How to scroll an HTML page to a given anchor
- Javascript – ERR_CONTENT_LENGTH_MISMATCH
- TypeError getElementsByTagName is not a function issue
- How to check if the URL contains a given string?
- Check if url contains string with JQuery
- stopPropagation vs. stopImmediatePropagation
- Ajax success function
- Object doesn’t support property or method ‘addEventListener’
- How to fix javascript .toFixed is not a Function error
- jQuery checkbox checked state changed event
- etect the Enter key in a text input field
- Combine CSS and JS files from plugins
- Ajax call does not activate callback function
- Apply jquery script to only woocommerce product pages and categories
- Nice scroll to wordpress
- jQuery Hoverintent plugin in TwentyEleven Menu [closed]
- How wp_enqueue_script works?
- Merge two separate WP menus into one in Mobile view
- Script won’t execute in the media manager
- WordPress AJAX Call Not Return Result
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- How to correctly add JQuery in a WP theme?
- wp_ajax unauthenticated and authenticated
- WordPress ajax function parameter value not being passed
- Is it safe to include a javascript file in a template’s php file?
- Mixing Regular Javascript With jQuery in a Plugin
- How can I convert results of WP_Query (of Custom Post Type, with Custom Fields) to JavaScript?
- Show post in slider
- JQuery not working in my plugin [closed]
- jQuery UI inside widget on admin page
- JSON output returns page source code [closed]
- How to select the contents in the text view textrea in wp_editor?
- Dealing with a library that depends on jQuery
- How to set callback to execute after all the tinyMCE editors have been initialized?
- start.js:45TypeError: Not enough arguments on Safari [closed]
- Help with a jQuery Carousel
- Fall Back Google CDN in JavaScript
- I have an old version of jQuery showing up. How do I figure out where it is coming from?
- How do I make my wordpress post appear in a mouse hover preview?
- Search input area autogrow – how?
- Get value of selected option in select field in a WordPress form
- JS file is not loading when i put wp_head() and wp_footer
- Screen Options JavaScript Code
- Is there some jQuery conflict here?
- Theme has superfish – how to add supersubs?
- javascript onClick update user_meta from jquery.ajax
- How to use wp_ajax_set_post_thumbnail?
- Using wp_editor() when not logged stopped working
- Form validation before submitting
- Move Jquery.js to Footer
- Dropdown (with onChange) with custom taxonomies
- Multiple Notifications SetInterval
- Site images are fixed in front of my site content [closed]
- jQuery not working for media uploader
- How to toggle custom WP archive list
- Uncaught TypeError: undefined is not a function (shortcode-box)
- Running javascript in a child theme. Works in jsfiddle
- How to block action if post is “dirty”?
- WordPress video end function [duplicate]
- Javascript will not run properly
- Use one javascript variable into another javascript file
- How do I output user_registered time in my correct timezone?
- Ajax in Plugins: returns the whole page
- Add specific phrase after every product title including the discounted price? [closed]
- Ensure an external javascript file called from plugin is loaded after jquery is called
- Why my vertical tab js code is refreshing the page continuously? [closed]
- bootstrap-slider.js by seiyria not working in wordpress
- get_post_meta returns on side but it doesn’t return on bottom of admin page