<a onclick="if ( navigator.userAgent.toLowerCase().indexOf('gecko') != -1 ) document.location = this.rel; return false;" rel="http://ya.ru" href="/">link</a>