シンプルシンプルデザイン

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

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

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

モバイルバージョンを終了