0

I am trying to implement a pop-up window similar to how Origin (click on the 'Log In' does it (pops up in another window with a specific size). I've tried going through their code but I cannot find out how they are doing it. I tried Googling this issue and someone said to use window.open, but I cannot find on the Origin website any reference to this code. I've also noticed that the when viewing the Origin website on IE, clicking the 'Log In' link will open the page in the same window as oppose to popping up another window. Is there some sort of IE detection going on? Why would Origin do that only for IE?

4

2 回答 2

1

它们可以window.open在外部 JS 文件中使用。基本上,他们使用它来打开登录页面并将所有登录内容保存在所谓的 PHP 会话中。

它可能在 IE 中不起作用,因为 IE 不支持很多现在正在使用的新技术。老实说,最好将登录页面设置在同一个窗口中,因为某些浏览器可能会禁用弹出窗口,或者某些用户可能会觉得弹出窗口很烦人。

于 2012-11-21T04:12:31.410 回答
0

像这样的东西?

window.open('your page location', 'pop out window's title', 'width=850px,height=600px,top=200px,left=400px,toolbars=no,scrollbars=yes,status=no,resizable=yes');
于 2012-11-21T10:04:58.917 回答