奇妙な問題があります。一部のブラウザー (chrome など) では、以下のコードで新しいウィンドウが開きます。したがって、期待どおりに機能します。他のブラウザー (firefox など) では、アラート ボックスが表示されるだけなので、要求されたウィンドウは開きません。すべてのブラウザで動作するコードの提案はありますか?
if(TestVar == "1810" )
{
alert ("test " + TestVar + "! ");
window.location.href="http://astyle.home.xs4all.nl/beautyfarm2003/wellnessbon_321442.html";
}
if(TestVar == "1920" )
{
alert ("Test " + TestVar + "! ");
window.location="http://astyle.home.xs4all.nl/beautyfarm2003/wellnessbon_1925485.html";
} // Vriendinnendag