我把JS获取的值 传送到文本框内<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>获取值</title>
<script>
function go(){
var myHerf=top.location.href;
var title=document.title;
document.getElementById("show").innerHTML= myHerf;
}
go();
</script>
</head><body>
<form action="lottery.php" method="post" target="_blank">
<textarea name="message" cols="100" rows="20" id="show">
</textarea>
</form></body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>获取值</title>
<script>
function go(){
var myHerf=top.location.href;
var title=document.title;
document.getElementById("show").innerHTML= myHerf;
}
go();
</script>
</head><body>
<form action="lottery.php" method="post" target="_blank">
<textarea name="message" cols="100" rows="20" id="show">
</textarea>
</form></body>
</html>
解决方案 »
- 怎样获取checkbox的id?
- 打印多出一张空白的问题?
- 为什么当点击下面回复链接时只能触发body的click事件,而不能继续触发链接的click事件。点击上面链接时正常。纠结……谁来帮帮我……
- Javascript怎么调用ActiveX DLL的函数?(VB)急!!在线等
- 求助js解析xml文件(100分)不够再加
- DIV的替换问题
- 如何得到当前格在浏览器的坐标啊?
- JAVASCRIPT中怎么样能把框架页面中 右框架的值传到左框架去啊??
- 用yui的SWFObject在网页中嵌入flash
- 这种情况应该怎样做更好?(100分)
- dhtmlxGrid 如何查出改的是列表的哪一个字段下的值
- 请问,开发这样一个框架大概需要多少钱?
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>获取值</title>
<script>
function go(){
var myHerf=top.location.href;
var title=document.title;
document.getElementById("show").value= myHerf;
}
onload = go;
</script>
</head><body>
<form action="lottery.php" method="post" target="_blank">
<textarea name="message" cols="100" rows="20" id="show">
</textarea>
</form></body>
</html>