Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.43 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  4. <body>
  5. <img id="google" src="http://www.google.com/favicon.ico">
  6.  
  7. <script>
  8.     $(document).ready(function(){
  9.         var width = $('#google').width();
  10.         $.ajax({
  11.             url:'http://example.com',
  12.             data:{
  13.                 width:width
  14.             }
  15.         })
  16.     })
  17. </script>
  18. </body>
  19. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement