日期:2014-05-17 浏览次数:20744 次
<%@ page language="java" pageEncoding="GBK"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>超链接测试页面</title> <script language="javascript"> function test1() { var para = 1; window.location.href = "aaa.do?para="+para; } function test2() { var para = document.getElementById("para").value; form1.action = "bbb.do?para="+para; form1.submit(); } </script> </head> <body> <a onclick="test1()">1111111111111111111111111111</a> <a onclick="test2()">2222222222222222222222222222</a> <a href="ccc.do?para=3">3333333333333333333333333</a> <form name="form1"> <input type="text" id="para" value="2"> </form> </body> </html>