別のページにリダイレクトするアラートを読み込もうとしていますが、ページの背景が読み込まれないという問題があります。レンダリングされる唯一の html は、javascript アラートです。アラートの前に少なくとも一部の html が読み込まれるように、これを修正する方法はありますか?
も試した
var onFooEndFunc = function()
{
var delay = 50; /* milliseconds - vary as desired */
var executionTimer;
return function()
{
if (executionTimer)
{
clearTimeout(executionTimer);
}
executionTimer = setTimeout(function()
{
window.alert('Please download a game');
window.location.href='games.html';
}, delay);
};
}();