■
とりあえず修正しておきました。
//この商品をG-Tools(http://www.goodpic.com/mt/aws/index.html)で紹介する var pnir; var document; var id; pnir = new ActiveXObject("Sleipnir.API"); id = pnir.GetDocumentID(pnir.ActiveIndex); document = pnir.GetDocumentObject(id); if (document == null) { pnir.MessageBox("Document オブジェクトを作成できません"); } else { // var url = document.URL.substr(0,45); // asin = url.substr(35,10); var asin = document.URL.substr(41,10); // pnir.MessageBox(asin); pnir.NewWindow('http://www.g-tools.com/foward_ecs4.php?region=jp&Keywords='+asin+'&SearchIndex=asin',true); document = null; } pnir = null;