I have a form in which the user enters numbers in a field and then the page is directed to a url, the code is as follows:

我有一个表单,用户在一个字段中输入数字,然后页面被定向到一个网址,代码如下:

<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>

Is there a way to fill up a particular field on the website which the script is directing to, which is:

有没有办法填写脚本指向的网站上的特定字段,即:

<input type="text" name="number" id="number" maxlength="40" class="form-control input-lg" />

2 个解决方案

#1


0

The answer is no, unless you can add code to the target site or the target site accepts parameters. Alternative is to create a proxy.

答案是否定的,除非您可以向目标站点添加代码或目标站点接受参数。另一种方法是创建代理。

That said, If you look at the code of their form, they have the message

也就是说,如果你看一下他们表格的代码,他们就有了这个信息

<!-- Want to put this tracking on your website/intranet? Please use https://connect.track-trace.com/ -->

Their terms state clearly that the above is what you need to do:

他们的条款清楚地表明以上是你需要做的:

  • 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.
  • 您不得修改,改编或破解本服务或修改其他网站,以免错误地暗示其与服务,Webfokus或任何其他Webfokus服务相关联。

  • 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.
  • 您同意,未经Webfokus明确书面许可,不得复制,复制,复制,出售,转售或利用本服务的任何部分,使用本服务或访问本服务。

更多相关文章

  1. 我无法理解为什么我的代码中的单击选择文本
  2. js字符串与html代码互相转换时怪想法:自己解析js字符串成普通字
  3. 解决FCKEditor编辑器在浏览器返回时显示html源代码的问题
  4. 高分求:如何解析IdHTTP获得的http代码?用mshttp的IHTMLDocument2可
  5. 韩顺平_轻松搞定网页设计(html+css+javascript)_第19讲_js运行原
  6. HTML显示日期时间代码 - [js 特效代码]
  7. 解决html代码中插入的图片在浏览器中不显示的办法
  8. HTML代码格式化工具
  9. j2ee的web项目,有最终的html代码(即f12看到的最终给用户浏览器展示

随机推荐

  1. 解决GO语言安装air框架时遇到go: inconsi
  2. 分享5种文件变更时自动重载Go程序的方法
  3. go语言中普通函数与方法的区别是什么?
  4. golang中方法的receiver为指针和不为指针
  5. 分享一次腾讯Go开发岗位面试经过
  6. go是什么语言
  7. 详解Golang如何对excel进行处理
  8. 关于go值传递和地址传递的例子
  9. Golang怎么执行cmd命令行
  10. 关于 Go 并发编程之 Mutex