点击按钮打开 输入的链接

来源:互联网 发布:淘宝联盟平台电脑版 编辑:程序博客网 时间:2024/05/17 14:20
1、输出到框

<textarea cols="95" rows="12" name="runcode1">&lt;input type="text" name="newLocation" id="newLocation" size="60" value="Input new URL here!" onFocus="this.value=''"&gt;&lt;input type="button" value="ChangeIframeLocation" onClick="window.hello.location=document.getElementById('newLocation').value;"&gt;&lt;br&gt;&lt;br&gt;&lt;iframe name="hello" src="http://bbs.blueidea.com/" width="80%" height="60%"&gt;&lt;/iframe&gt;</textarea>
2.输出到新窗口的 拼凑网址   与asp在一起用 (自用)!!!
<input name="DefaultPicUrl" type="text" id="DefaultPicUrl" size="30" maxlength="240">
 <input type="button" value="OK" onclick="window.open('http://to223184.11047.84g.com/86/spic.asp?kw='+DefaultPicUrl.value)"/>
原创粉丝点击