【发布时间】:2011-06-07 06:58:52
【问题描述】:
我想读取用户使用的协议。 HTTP 或 HTTPS 并相应地在该页面上为站点 2 构建我的 url。
第 1 步:Read the url user is on site 1 //可以是任何 http 或 https
第二步:Prefix the protocol for site 2 on that site 1 page according. HTTP or HTTPS as per step 1
FF 处理得很好。但是 IE 不允许从 HTTPS 站点导航到 HTTP 站点。
<a href="protocol://site2.com/">Click here for site 2</a>
【问题讨论】:
-
不允许是什么意思?你的实际问题是什么?