发新话题
打印

将一个表单提交给两个页面

将一个表单提交给两个页面

<html>

<head>
<meta name=vs_defaultClientScript content="JavaScript">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>

<script id=clientEventHandlersJS language=javascript>
<!--

function b1_click() {
        form1.action="1.php";
        form1.target="i1";
        form1.submit();
        form1.action="2.php";
        form1.target="i2";
        form1.submit() ;
return false;
}
//-->
</script>
</head>

<body>
<IFRAME name="i1" width="243" height="208"></IFRAME>
<IFRAME name="i2" width="243" height="208"></IFRAME>
<form method=post action="" ID="form1" target="" language=javascript >
<input type=text name=t1>
<input type=submit onclick="b1_click()">

</form>
</body>

</html>

TOP

很好的例子,值得学习。

TOP

Bedazzling

Your remarks are so pointy and enlightened that I almost lost my sight. NOT.
[url=http://uk-online-casinos.pkak.com]trusted casinos[/url] [url=http://bonus-online-gambling-top.b8w.net]gambling bonuses[/url]

TOP

发新话题