避免弹出窗口阻止程序

避免弹出窗口阻止程序

问题描述:

从服务器端,我想在新窗口中打开pdf文件.

我添加window.open,并在第一次要求我允许弹出窗口时允许,它刷新了我的页面.
我想避免刷新并在新窗口中打开pdf(与IE一起检查)

请帮助我.

From server side, I want to open pdf file in new window.

I add window.open and first time it ask me to allow popup and after allowing, it refreshes my page.
I want to avoid refreshing and open the pdf in new window (check with IE)

Please help me.

开始 ^ ].


不使用弹出窗口会更好.考虑一下:您想战斗违反您的用户决定.您是否仍然希望用户即使这样做也愿意为您的服务付费?

—SA
Not using pop-ups would be much better. Think about it: you want to fight against your user decision. Do you still hope that you''re user will gladly pay for your service even if you do such things?

—SA