Advertisement
Guest User

Untitled

a guest
Apr 17th, 2024
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Code to make the back and forward buttons removable
  2. // However, it will cause issues with Firefox if placed in overflow or removed from toolbars
  3. let backButton = document.querySelector('#back-button');
  4. let forwardButton = document.querySelector('#forward-button');
  5.  
  6. // making the back button removable
  7. backButton.setAttribute('removable', 'true');
  8.  
  9. // making the forward button removable
  10. forwardButton.setAttribute('removable', 'true');
Tags: firefox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement