如何获得页面刷新参数
有两个jsp页,Top.jsp和List.jsp
在Top页中的一个文本框中输入值后,点击一按钮,新弹出List页.(window.open)
关闭List页后,剩下TOP页.我刷新Top页(不点击按钮),又弹出List页.
如何解决这一现象呢?
不要消除缓存的方法.
------解决方案--------------------top.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ">
<html>
<head>
<title> Top </title>
<meta name= "Generator " content= "EditPlus ">
<meta name= "Author " content= " ">
<meta name= "Keywords " content= " ">
<meta name= "Description " content= " ">
<script>
function theClick()
{
window.open( "list.html ");
}
</script>
</head>
<body>
<input type= "button " value= "ClickMe " onclick= "theClick() ">
</body>
</html>
list.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ">
<html>
<head>
<title> List </title>
<meta name= "Generator " content= "EditPlus ">
<meta name= "Author " content= " ">
<meta name= "Keywords " content= " ">
<meta name= "Description " content= " ">
</head>
<body>
List
</body>
</html>
不会出现你说的情况。
你可能是把window.open()没有放到一个函数里面.
------解决方案--------------------要看过你的top.htm才能判断,一般情况下不会出现这种问题。