您的位置:首页 > 其它

点击按钮打开 输入的链接

2009-09-14 21:56 232 查看
1、输出到框
<input type=text name="url">

<input type="button" value="OK" onclick=document.main.location=url.value;>

<iframe name="main" width="500" height="500"></iframe>

<input type="text" name="newLocation" id="newLocation" size="60" value="Input new URL here!" onFocus="this.value=''">
<input type="button" value="ChangeIframeLocation" onClick="window.hello.location=document.getElementById('newLocation').value;">
<br><br>
<iframe name="hello" src="http://bbs.blueidea.com/" width="80%" height="60%"></iframe>

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)"/>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐