Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Redirect current page based on the URL index
- //https://www.developintelligence.com/blog/2016/04/javascript-redirect-how-to-redirect-a-web-page-with-javascript/
- jQuery(document).ready(function( $ ){
- // Your code in here
- if (window.location.href.indexOf("user_id") > -1) {
- setTimeout(function() {
- window.location.href = "https://example.com";
- }, 1000);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement