$('.class').click() remove links (a class="class" ...) in chrome on mac os
- $(document).ready(function() {
- $('.OpenPage').click(
- function (event) {
- var link = $(this).attr('id');
- var resolution = $(this).attr('name');
- var width = screen.width;
- var height = screen.height;
- if(resolution) {
- resolution = resolution.split('x');
- width = resolution[0];
- height = resolution[1];
- } else {
- width = width-20;
- height = height-180;
- }
- var openWindow = window.open(link , '',
- 'resizable=yes,' +
- 'status=no,' +
- 'location=no,' +
- 'toolbar=no,' +
- 'menubar=no,' +
- 'fullscreen=no,' +
- 'scrollbars=yes,' +
- 'dependent=no,' +
- 'width=' + width + ', height='+height
- );
- openWindow.focus();
- return false;
- }
- );
- });
- <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