一个HTML,JAVASCRIPT简单问题

来源:百度知道 编辑:UC知道 时间:2024/05/07 04:09:35
其实我也不清楚是不是这个问题

我现在自己做个小程序想获取网页数据,这个小程序让用户输入,之后利用狗狗搜索到自己想要的,把想要的页面中的下载地址反馈,但是我现在只能得到搜索首页的数据,而不能得到输入关键字搜索后的数据,就是说不能得到点击搜索后的那个页面的数据,这个怎么实现,可以吗?
<div class="search">
<span><a onmousedown="return tongji(this.innerHTML,this.href,'sbkk_0')" href="http://www.isc.org.cn/" target="_blank" class="a_look"></a></span><input type="text" id="s" class="input"/><input type="submit" id="btn1" value="狗狗搜索" class="button" onclick="javascript: check();">
<script>$E("s").focus();fl();</script>
</div>

上面是源文件,小弟我现在只会通过函数获得源文件的信息

楼下的同志们请注意了,我要的不是搜索页面,而是传入一个参数,VALUE = 我要下载的东西,然后直接生成下载的页面。

<script>
function gougou(strn){
var $rj="http://www.gougou.com/search?search=" + encodeURIComponent(strn);
open($rj);
}
</script>
<body>
<div class="search">
<input type="text" id="s" class="input"/>
<input type="submit" value="狗狗搜索" id="btn1" class="button" onclick="gougou(s.value)">
</div>
</body>

<script>
//查询函数
function gougou(url){
//定义一个字符串保存网址
var searchUrl="http://www.gougou.com/search?search=" + encodeURIComponent(url);
//打开查询页面
open(searchUrl);
}
</script>
<body>
<div class="search"><