I have a website, where I am trying to use Ajax to update some stuff on the page without reloading it. However, there is a good chance that many of my users will be using mo
I agree that meta refresh is not the right way forward here. In addition to galambalazs' link, search on "progressive enhancement".
However, in the spirit of answering the question, you could try the following. It's untested, may not work in all browsers, but should be along the right lines:
var i, refAttr;
var metaTags = document.getElementsByTagName('meta');
for i in metaTags {
if( (refAttr = metaTags[i].getAttribute("http-equiv")) && (refAttr == 'refresh') ) {
metaTags[i].parentNode.removeChild(metaTags[i]);
}
}
Whether removing it would stop the browser from refreshing in time remains to be seen.