< href="b.htm?txt='+ txtname.value">
解决方案 »
- IE浏览器button onclick无法跳转JS修改的url
- thinkphp不能在空间运行
- <input type = "checkbox" value ="v" /> value = 后面的值可不可以用变量代替呢?
- 请问这个语句怎么写?GROUP BY 好像不行
- MySql&phpMyadmin问题
- 提交动态列表框中的数据
- 有关数据信息检索的速度的问题?
- 关于zend
- 这个是什么意思??
- 问:php网站的安全性考虑都有哪些?每条10分
- 如何设置一个SESSION的有效时间(TIMEOUT)?
- (UP有分)RH8.0 Linux下php和mysql联接的最简单问题:mysql_connect()函数出错
实际上等同于提交一个URL:
http://www.yourdomain.com/yourpath/b.htm?textName=textValue
<script>
function tootherpage(url)
{
location.href=url+"?text="+document.form1.textfield1.value;
}
</script>
<a href="#" onclick="tootherpage("b.htm")">to page b</a>
<form name="form1" method="post" action="">
<input type="text" name="textfield1">
</form>b.htm中包含以下的内容:
<script>
url=String(window.document.location);
para=url.substring(url.indexOf("=")+1,url.length);
alert(para);
</script>
{
window.open("checkuser.php?text="+document.form1.text.value,"sd","left=100,top=200,width=200,height=100,resizable=0");}