How to set following tag to be inactive in firefox
browser?
<meta http-equiv="refresh" content="120"/>
The reason is described here
How to set following tag to be inactive in firefox
browser?
<meta http-equiv="refresh" content="120"/>
The reason is described here
If there is no conditional for chrome like for IE (like in comment above) than you can always check user agent on server side and add required meta
tags if it is chrome.
Detecting browsers is not a good idea. Though older version of jQuery support $.browser()
it is not widely suggested.
Hence try to figure out the root cause of the problem and make it cross browser compatible.
Updates:
I have created a fiddle based using this answer,
var isOpera = !!window.opera || navigator.userAgent.indexOf('Opera') >= 0;
// Opera 8.0+ (UA detection to detect Blink/v8-powered Opera)
var isFirefox = typeof InstallTrigger !== 'undefined'; // Firefox 1.0+
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
// At least Safari 3+: "[object HTMLElementConstructor]"
var isChrome = !!window.chrome; // Chrome 1+
var isIE = /*@cc_on!@*/false; // At least IE6
document.write('isFirefox: ' + isFirefox + '<br>');
document.write('isChrome: ' + isChrome + '<br>');
document.write('isSafari: ' + isSafari + '<br>');
document.write('isOpera: ' + isOpera + '<br>');
document.write('isIE: ' + isIE + '<br>');
Using the above browser detection code, I have added this
if (isFirefox) {
$('meta[http-equiv=Refresh]').remove();
}