ナビ

ファイル名を拡張子なしで取得するサンプル

wrote :

変数bnにhtmlファイルのファイル名を拡張子なしで取得するサンプル

var bn = location.href.split("/");
bn = bn[bn.length -1].split(".html")[0];
// http://www.allinthemind.biz/markup/js/basename_js.html の場合
//