abdulkrm

Redirection that has # symbol

Nov 21st, 2023
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <script type="text/javascript">
  2. window.onload = function() {
  3. var currentPage = window.location.pathname;
  4. var targetPage = '/TCWarranty.html';
  5.  
  6. if(currentPage === targetPage && window.location.hash === '#use') {
  7. window.location.href = 'YOUR_DESTINATION_DOMAIN_HERE';
  8. }
  9. };
  10. </script>
Advertisement
Add Comment
Please, Sign In to add comment