点击网页中的按钮后跳转到其他页面是怎么实现的?
除了表单的action外,还有没有其他方法,比如:一个表单中的两个按钮分别连接到两个页面不好意思,再具体点啊,按钮怎么做连接了?谢谢了!...
除了表单的action外,还有没有其他方法,
比如:一个表单中的两个按钮分别连接到两个页面
不好意思,再具体点啊,按钮怎么做连接了?
谢谢了! 展开
比如:一个表单中的两个按钮分别连接到两个页面
不好意思,再具体点啊,按钮怎么做连接了?
谢谢了! 展开
3个回答
展开全部
送你一个全的哈!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script language="javascript">
function open1()
{
open("http://www.advidea.cn","");
}
function open2()
{
open("http://www.advidea.cn","百度","toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=650,height=150");
}
function open3()
{
open("http://www.advidea.cn","百度","fullscreen=1");
}
function open4()
{
open(document.location,"","fullscreen=yes");
}
function open5()
{
close();
}
</script>
<title>无标题文档</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<label>
<input type="button" name="Submit" value="打开窗口" onclick="open1()"/>
</label>
<p>
<label>
<input type="button" name="Submit2" value="打开固定大小窗口,无菜单栏等" onclick="open2()"/>
</label>
</p>
<p>
<label>
<input type="button" name="Submit3" value="打开全屏窗口" onclick="open3()"/>
</label>
</p>
<p>
<label>
<input type="button" name="Submit4" value="全屏" onclick="open4()"/>
</label>
</p>
<p>
<label>
<input type="button" name="Submit5" value="关闭退出" onclick="open5()"/>
</label>
</p>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script language="javascript">
function open1()
{
open("http://www.advidea.cn","");
}
function open2()
{
open("http://www.advidea.cn","百度","toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=650,height=150");
}
function open3()
{
open("http://www.advidea.cn","百度","fullscreen=1");
}
function open4()
{
open(document.location,"","fullscreen=yes");
}
function open5()
{
close();
}
</script>
<title>无标题文档</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<label>
<input type="button" name="Submit" value="打开窗口" onclick="open1()"/>
</label>
<p>
<label>
<input type="button" name="Submit2" value="打开固定大小窗口,无菜单栏等" onclick="open2()"/>
</label>
</p>
<p>
<label>
<input type="button" name="Submit3" value="打开全屏窗口" onclick="open3()"/>
</label>
</p>
<p>
<label>
<input type="button" name="Submit4" value="全屏" onclick="open4()"/>
</label>
</p>
<p>
<label>
<input type="button" name="Submit5" value="关闭退出" onclick="open5()"/>
</label>
</p>
</form>
</body>
</html>
参考资料: http://www.advidea.cn
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |