js通过url参数跳转
[ 2007-5-9 15:10:00 ]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>js跳转url</title>
</head>
<body>
<script language="javascript">
var str=window.location.href;
var es=/canshu=/;
es.exec(str);
var GoUrl=RegExp.rightContext;
if (GoUrl!=""){
//document.write(GoUrl);
window.location=GoUrl;
}
</script>
</body>
</html>
发表评论: