以前の投稿で次のことを見つけましたが、それについての助けが必要です。
// For VML detection, here's what google maps does (search for "function Xd"):
function supportsVml() {
if (typeof supportsVml.supported == "undefined") {
var a = document.body.appendChild(document.createElement('div'));
a.innerHTML = '<v:shape id="vml_flag1" adj="1" />';
var b = a.firstChild;
b.style.behavior = "url(#default#VML)";
supportsVml.supported = b ? typeof b.adj == "object": true;
a.parentNode.removeChild(a);
}
return supportsVml.supported;
}
VML がサポートされていない場合に、コードを使用してユーザーを別のページに誘導したいと考えています。たとえば、alternative.html というページに転送するためのコードの書き方と実装方法を教えてください。
JavaScriptの知識はあるけど、このレベルじゃない!
ありがとう。