我正在放置一个简单的工具,用户可以将一些数据添加到允许他们远程访问设备的表单域中,但我需要它将它们带到登录页面。将字符串添加到提交的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>
上述带他们到该装置,但我有添加了一个脚本,然后在之后提交的信息如下(这是一个IP地址)
/网络/客增加的问题/en/websys/webArch/authForm.cgi
我一直在寻找方法,但需要尽可能简单?
以下是完整的脚本:
<script>
function open_win()
{
window.open("");
}
</script>
<style>
body {
background-color: #fff;
}
</style>
<p><img src="logo.gif" /></p>
<p>Hello customer</p>
<p>Welcome to the Activation</p>
<p><a target="_new" href="">Instructions</a></p>
<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>
能否请你举一个例子,我有问题的理解哪里,你要添加 – Spokey
@Spokey我已经编辑我的职务,所以你看到完整的剧本什么。所以在输入字段中,用户将输入IP地址,然后选择放开,它将打开一个到该页面的新选项卡。但我需要在这部分的最后添加它们以将它们带到登录页面/web/guest/en/websys/webArch/authForm.cgi – user2584481
'thevalue + thepath'应该足够了。简单的字符串操作 –