2008-09-03から1日間の記事一覧

IE8β2のHTMLDivElementのそれ

取得方法 <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=8" > </head> <body> <div id="hoge"></div> <script type="text/javascript"> var hoge = document.getElementById("hoge"); for(i in hoge){ document.write(i, ', '); }; </script> </body> </html> 結果 nextSibling, onresizeend, onrowenter, ariaP…

Chromeのnavigatorオブジェクト

navigator appName Netscape plugins [object PluginArray] language ja-JP vendorSub platform Win32 mimeTypes [object MimeTypeArray] productSub 20030107 appVersion 5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.13 (KHTML, like Gecko) …

Chromeのグローバルオブジェクト

globalオブジェクト external, Node, Rect, name, Event, Text, Range, status, closed, parent, frames, Entity, opener, screen, length, scrollX, scrollY, UIEvent, Comment, screenY, Element, screenX, history, toolbar, CSSRule, console, document,…

winow.onhashchange

名前から察しの通りlocation.hashが変更になったタイミングで動作する関数。初期値はnull。 alert(window.onhashchange); // null sample.html <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=8" > <script type="text/javascript"> window.onhashchange = function(){ alert(location.hash); }; </script> </head> <body> </body></html>

IE8でのXMLHttpRequestオブジェクトの行方

XMLHttpRequest alert("XMLHttpRequst" in window); // true ついでにActiveXObjectも alert("ActiveXObject" in window); // true ちゃんとwindowオブジェクト配下に隠れていた。よかった。