大家帮忙看下,在函数show中??????部分怎么写,功能是点击button的时候右边的frame跳转到与之相应的html文件
<html>
<head>
<title>left.html</title>
<script type="text/javascript">
<!--
function show(){
var name = ?????????????
parent.right.location.replace(name+ ".html");点击button的时候右边的frame跳转到与之相应的html }
-->
</script>
</head>
<body>
<input type="button" value="right1" name="right1" onClick="show()"/><br/>
<input type="button" value="right2" name="right2" onClick="show()"/>
</body>
</html>
<html>
<head>
<title>left.html</title>
<script type="text/javascript">
<!--
function show(){
var name = ?????????????
parent.right.location.replace(name+ ".html");点击button的时候右边的frame跳转到与之相应的html }
-->
</script>
</head>
<body>
<input type="button" value="right1" name="right1" onClick="show()"/><br/>
<input type="button" value="right2" name="right2" onClick="show()"/>
</body>
</html>
frame.src = 'a.html'
frame.src=name+".html";