2008-09-03から1日間の記事一覧
取得方法 <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…
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) …
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,…
名前から察しの通り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>
XMLHttpRequest alert("XMLHttpRequst" in window); // true ついでにActiveXObjectも alert("ActiveXObject" in window); // true ちゃんとwindowオブジェクト配下に隠れていた。よかった。