将文本从表单复制到另一个网站的文本字段
Copy text from form to another website's textfield
我有一个表单,用户在一个字段中输入数字,然后页面被定向到一个url,代码如下:
<html>
<head>
<meta charset="utf-8">
<title>Tracking</title>
</head>
<body>
<script>
function gotopage(){
window.open("http://www.track-trace.com/aircargo");
}
</script>
<form method="get">
Search:
<input id="input1" type="search" size="50" placeholder="Enter the number">
<input type="submit" value="Submit" onclick="gotopage();">
</form>
</body>
有没有办法填写脚本指向的网站上的特定字段,即:
<input type="text" name="number" id="number" maxlength="40" class="form-control input-lg" />
只有当您有权访问要重定向到的网站的实施时才能这样做,以便您可以使用额外的参数。
或者,如果您希望此行为特定于您自己的浏览器,您可以使用一些脚本或插件来实现。
答案是否定的,除非你可以向目标站点添加代码或者目标站点接受参数。另一种方法是创建一个代理。
就是说,如果您查看他们表单的代码,他们会显示消息
<!-- Want to put this tracking on your website/intranet? Please use https://connect.track-trace.com/ -->
他们的条款明确指出以上是你需要做的:
- You must not modify, adapt or hack the Service or modify another website so as to falsely imply that it is associated with the Service, Webfokus, or any other Webfokus service.
- You agree not to reproduce, duplicate, copy, sell, resell or exploit any portion of the Service, use of the Service, or access to the Service without the express written permission by Webfokus.
我有一个表单,用户在一个字段中输入数字,然后页面被定向到一个url,代码如下:
<html>
<head>
<meta charset="utf-8">
<title>Tracking</title>
</head>
<body>
<script>
function gotopage(){
window.open("http://www.track-trace.com/aircargo");
}
</script>
<form method="get">
Search:
<input id="input1" type="search" size="50" placeholder="Enter the number">
<input type="submit" value="Submit" onclick="gotopage();">
</form>
</body>
有没有办法填写脚本指向的网站上的特定字段,即:
<input type="text" name="number" id="number" maxlength="40" class="form-control input-lg" />
只有当您有权访问要重定向到的网站的实施时才能这样做,以便您可以使用额外的参数。
或者,如果您希望此行为特定于您自己的浏览器,您可以使用一些脚本或插件来实现。
答案是否定的,除非你可以向目标站点添加代码或者目标站点接受参数。另一种方法是创建一个代理。
就是说,如果您查看他们表单的代码,他们会显示消息
<!-- Want to put this tracking on your website/intranet? Please use https://connect.track-trace.com/ -->
他们的条款明确指出以上是你需要做的:
- You must not modify, adapt or hack the Service or modify another website so as to falsely imply that it is associated with the Service, Webfokus, or any other Webfokus service.
- You agree not to reproduce, duplicate, copy, sell, resell or exploit any portion of the Service, use of the Service, or access to the Service without the express written permission by Webfokus.