$('.class').click() remove links (a class="class" ...) in chrome on mac os

$('.class').click() remove links (a class="class" ...) in chrome on mac os

  1. $(document).ready(function() {
  2.     $('.OpenPage').click(
  3.         function (event) {
  4.             var link       = $(this).attr('id');
  5.             var resolution = $(this).attr('name');
  6.             var width      = screen.width;
  7.             var height     = screen.height;
  8.             if(resolution) {
  9.                 resolution = resolution.split('x');
  10.                 width  = resolution[0];
  11.                 height = resolution[1];
  12.             } else {
  13.                 width  = width-20;
  14.                 height = height-180;
  15.             }
  16.             var openWindow = window.open(link , '',    
  17.                 'resizable=yes,'  + 
  18.                 'status=no,'      + 
  19.                 'location=no,'    +
  20.                 'toolbar=no,'     + 
  21.                 'menubar=no,'     + 
  22.                 'fullscreen=no,'  + 
  23.                 'scrollbars=yes,' + 
  24.                 'dependent=no,'   + 
  25.                 'width=' + width + ', height='+height
  26.             );
  27.             openWindow.focus();
  28.             return false;
  29.         }
  30.     );
  31. });

  32. <a href="#" id="/link/..." name="200x300" class="OpenPage"><img src="/i/ico.png"/></a>
after page loading all  links to the class OpenPage disappear

have ideas ?

Chrome Linux

Chrome Mac 

jQuery 1.4.2