SHARE
TWEET

Chrome scrollbar error

a guest Feb 11th, 2013 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
  2. <script>
  3.     $(function(){
  4.         $("#destroy").click(function(){
  5.             $(".bar").remove();
  6.         });
  7.         $("#create").click(function(){
  8.             $("#foo").append('<div class="bar"></div>');
  9.         });
  10.     })
  11. </script>
  12. <html>
  13. <head>
  14.     <style>
  15.         body{
  16.             width:100%;
  17.         }
  18.         #foo{
  19.             height:1024px;
  20.             background-color:black;
  21.         }
  22.         .bar{
  23.             height:2024px;
  24.             background-color:gray;
  25.         }
  26.     </style>
  27. </head>
  28. <body>
  29.     <button id="destroy">Destroy</button>
  30.      <button id="create">Create</button>
  31.     <div id="foo"></div>
  32. </body>
  33. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top