Advertisement
Guest User

Untitled

a guest
Apr 12th, 2013
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.73 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5. <meta charset="utf-8" />
  6.  
  7. <script src="jquery-1.9.1.js"></script>
  8. </head>
  9. <body>
  10. <a id='arxcl'>
  11. open me
  12. </a>
  13.  
  14. <div id='ldiv'>
  15. click event with parameters
  16. </div>
  17.  
  18. <script>
  19. $("#ldiv").on("click",function(evt,force){
  20. console.log(evt,force);
  21. });
  22. $("#arxcl").on("click",function(evt){
  23.     var width = 810, height = 700;
  24.     var left = (screen.width - width) / 2;
  25.     var top = (screen.height - height) / 2;
  26.  
  27.     optstr = 'channelmode=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=0,toolbar=0,height=' + height + ',width=' + width + ',left=' + left + ',top=' + top;
  28.     var objWind = window.open("obs3.html",'foo',optstr);
  29.     objWind.focus();
  30. });
  31. </script>
  32. </body>
  33.  
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement