alert() 问题: 通过点击页面弹出的文本框,跳动下一个页面 function url() { alert('点击跳转 test2.html'); document.form1.action="test2.html";document.form1.submit();[} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script> function Jump() { window.alert("JumpToBaidu"); window.location.href='http://www.baidu.com' } </script> <input type="button" onclick="Jump()" value='ToBaidu'/> <input type=button value=hehe onclick="location.href='test2.html'"> function url() { if(confirm("跳转到test2.html么?"))location.href="http://www.baidu.com"; } url();这个还是用confirm比较好吧! 用onClick="javascript:windows.location.href="test2.html" 看下面的代码:test1.html <html> <head> <title>test1 </title> </head> <body> <form name ="form1"> <input type="name" value=""/> <br/> <input type="button" name="button" onclick="if(confirm('点击跳转test2.html'){location.href="test2.html";return true;}else{ return fasle;})"> </form> </body> </html> test2.html <html> <head> <title>test1 </title> </head> <body> <form name ="form2"> 跳转成功 </form> </body> </html> jquery easyui的datagrid中Long数据显示问题 关于正则返回值不一样 请教个问题 jquery dialog 不能提交表单 string 转为JSON 怎么根据className判断对象? 我想建立一个选择搜索。高人看看该怎么写 js截屏 position中三个值的意思,有点不明白? <!-- 蛙蛙请教:关于XML控件的SRC属性动态改变的问题,谢谢 --> easyui datagrid 某一列是下拉框,数据是个内嵌对象的值,在编辑状态下就没有值了 ajax和跨域问题,请教!!! 怎样做flash视频聊天?(web) 高分求意见!
function Jump()
{
window.alert("JumpToBaidu");
window.location.href='http://www.baidu.com' }
</script>
<input type="button" onclick="Jump()" value='ToBaidu'/>
function url()
{
if(confirm("跳转到test2.html么?"))location.href="http://www.baidu.com";
}
url();
这个还是用confirm比较好吧!
<head>
<title>test1 </title>
</head>
<body>
<form name ="form1">
<input type="name" value=""/>
<br/>
<input type="button" name="button" onclick="if(confirm('点击跳转test2.html'){location.href="test2.html";return true;}else{ return fasle;})">
</form>
</body>
</html>
test2.html
<html>
<head>
<title>test1 </title>
</head>
<body>
<form name ="form2">
跳转成功
</form>
</body>
</html>