Javascript 使用ShadowBox打开html页面

Javascript 使用ShadowBox打开html页面,javascript,html,shadowbox,Javascript,Html,Shadowbox,我正试图在shadowbox onload中打开一个html页面 function AlertMessage(){ Shadowbox.open({ player: 'html', content: 'http://www.google.com', height: 350, width: 470 }); } Shadowbox.init({ players:

我正试图在shadowbox onload中打开一个html页面

function AlertMessage(){
    Shadowbox.open({
          player:     'html', 
        content:    'http://www.google.com',
        height:     350,
        width:      470
    });
}



Shadowbox.init({

      players:  [ 'html'] 
});

 <body onload="AlertMessage();">
它没有显示任何东西。我可以将HTML内容放在阴影框中,但是我不知道如何将url放在阴影框中。e、 我想在暗箱中打开google.com。怎么做?
这已经在前面讨论过了,但似乎没有一个解决方案适合我。

尝试向警报消息功能添加计时器。比如1秒。我不知道为什么我们需要一个计时器。你的真实代码中有脚本标记吗当然可以。它适用于html内容。我无法指定url。如果我如上所述指定,它将url视为html的一部分