注册 登录
编程论坛 J2EE论坛

请教在html中嵌套javascript的问题

发布于 2010-09-11 13:39, 1545 次点击
我是个初学者,不会写网页,想请教一下,
我现在实现了一个Button按钮“注册”,使用html编写的,然后想实现点击“注册”,就能弹出已经编写好的注册的页面,该怎么连接呢???????
9 回复
#2
maxliz2010-09-11 17:28
按钮添加点击事件
写个function
window.location=url
#3
2010-09-12 01:35
你可以用很多种方法,一般用超连接
#4
2010-09-12 20:21
有什么书可以介绍一下吗,关于jsp的书,讲的比较详细的,最好是能够自学就能看懂的,
#5
maxliz2010-09-13 20:04
lz先搞清楚JSP和Javascript和JScript是三门不同的语言
#6
SoftWarezx2010-09-14 10:04
jsp的话action提交
#7
huang56632902010-09-14 10:28
如下
程序代码:
<body>
<form id="form1" name="form1" method="post" action="你想跳转的页面路径">
  <input type="subimt" name="" value="注册"  />
</form>
</body>
用Javascript
程序代码:
<body>
<script>
function subimt()
{
window.location = "你想跳转的页面路径";
}
</script>
<form id="form1" name="form1" method="post" action="">
  <input type="button" name="" value="注册"  onclick="subimt()"/>
</form>
</body>
还有一种用超链接形式的,
#8
wei00002010-09-14 17:13
你在网上搜搜js的资料看看就行,不用特别买书学
#9
2010-09-15 11:02
谢谢大家,感激不尽!!!我还要多钻研,才行呀
#10
LmissM2010-12-06 22:54
我建议用Jquery编写ajax
这个功能强大
1