location.hashデバッグ(小ネタ)

DECONでmalaさんが言っていたJavaScriptデバッグ方法

  • alert debug
  • window.status debug
  • document.title debug

に追加でlocation.hash debug。

<script type="text/javascript">
location.hash = 'DEBUG';
</script>

それなりに使えるかも。と思ったらIEでは無限ループになっちゃいました。使えねー。