1
내 페이지 frame1
및 frame2
에 2 개의 프레임이 있습니다. 프레임 2는 rightpage.html
이라는 html 페이지를 표시합니다. 따라서 frame2
에서 rightpage.html
을 클릭하면 frame1
의 URL을 toppage.html
으로 변경해야합니다.자바 스크립트를 사용하여 프레임의 URL을 변경하십시오.
<html>
<frameset cols='45%,55%'>
<frame src='leftpage.html' name='frame1' id='frame1' frameborder='0'>
<frame src='rightpage.html' name='frame2' id='frame2' frameborder='0'>
</frameset>
</html>
도와 주시겠습니까?
미리 감사드립니다. 또한 앵커의 target
속성을 사용할 수 있습니다
parent.frame1.location = 'toppage.html'
: 당신은 자바 스크립트 솔루션을 사용하려면
감사합니다 .. 그게 잘 .. .. –
질문에 대답하고 여전히 현대적인 브라우저에서 프레임에 대해 조언 좋은 직장. –