View Full Version : How to use <object> instead of iframe in this javascript code? ()

01-17-2012, 02:47 PM
How to use <object> instead of iframe in this javascript code? ()
it's very important for me please help me?
i can not use frame name in the data="frame1".
how can i do it?
can i use <frame> how?

<script type="text/javascript">
function RedirFrames(id1, url1, id2, url2, id3, url3, id4, url4)
document.getElementById('frame1').src = url1;
document.getElementById('frame2').src = url2;
document.getElementById('frame3').src = url3;
document.getElementById('frame4').src = url4;

<body id="body">


<iframe id='frame1' name="frame1" style="position: absolute; left: 0px; top: 0px;" width="49%" height="49%"></iframe>
<iframe id='frame2' name="frame2" style="position: absolute; right: 0px; top: 0px;" width="50%" height="49%"></iframe>

<iframe id='frame3' name="frame3" style="position: absolute; left: 0px; bottom: 0px;" width="49%" height="49%"></iframe>
<iframe id='frame4' name="frame4" style="position: absolute; right: 0px; bottom: 0px;" width="50%" height="49%"></iframe>