Advertisement
krot

parent scrollTo

Apr 19th, 2016
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var el=window.parent.document.getElementById('mhcart');if(el){
  2. window.parent.scrollTo(0,0);
  3. el.style.display = 'none';
  4. window.scrollTo(0,0);
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement