我有一个可以在IE中打开特定页面的表单,但是它是一个.cgi

/web/guest/en/websys/webArch/authForm.cgi

请看这篇文章:

Adding string to the end of submitted URL?

<input type="text" name="prog_site" id="prog_site" value="http://" />
<a href="http://" onclick="this.href=document.getElementById('prog_site').value" target="_blank">Let's go!</a>


上面的代码是一个输入字段,它使用提交的URL打开一个新选项卡,并添加到提供的文件ext上。但是该页面需要Cookie才能使其正常运行。

最佳答案

该代码仅在单击时更改href属性,这已经为时已晚。
考虑

<input type="text" name="prog_site" id="prog_site" value="http://"
       onkeyup="document.getElementById('href_target').href=this.value" />
<a id="href_target" href="http://" target="_blank">Let's go!</a>

关于javascript - IE中的加载页面要求启用Cookie的问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/17727688/

10-12 01:14
查看更多