使用网页框架frameset,分成top,left.right,在top.jsp中能显示登录的用户名吗

如题所述

第1个回答  2017-07-07
分别列出三个文件的内容如下:

(1) frame.html
<frameset rows="30%, 70%">
<frame name="topframe" src="top.html">
<frameset cols="40%, 60%">
<frame src="left.html">
<frame src="main.html">
</frameset>
</frameset>

(2) top.html
<input type="text" value="abc" id="abc">

(3) main.html
<input type="button" onclick="changeValue();">

<script>
function changeValue(){
parent.topframe.abc.value='I have be changed!!!';
}
</script>本回答被提问者采纳

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网