Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>we can change the innerHTML of the specific div or td (if we are using tables). I am using table and it is working well.</p> <p>This is the HTML of the index page.</p> <pre><code>&lt;body&gt; &lt;table border="0"&gt; &lt;tr&gt; &lt;td&gt; &lt;button name="chk" id="chk" style="height: 50px; width:80px; cursor:pointer;" onclick="scrollme()"&gt;Click me&lt;/button&gt; &lt;/td&gt; &lt;td id='test' style="border:1px solid"&gt; &lt;iframe frameborder=0 align=middle width=100% height=100% scrolling="no" src='linkframe.php' name='frm' id='frm' marginheight=0 marginwidth=0 &gt;&lt;/iframe&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;input type="hidden" id="tag" name="tag" value="0"/&gt; &lt;/body&gt; </code></pre> <p>This is the javascript function in the index page.</p> <pre><code>&lt;script type="text/javascript"&gt; function scrollme() { if(document.getElementById('tag').value==0) { document.getElementById('test').innerHTML="&lt;iframe frameborder=0 align=middle width=100% height=100% scrolling='yes' src='linkframe.php' name='frm' id='frm' marginheight=0 marginwidth=0 &gt;&lt;/iframe&gt;"; document.getElementById('tag').value=1; } else { document.getElementById('test').innerHTML="&lt;iframe frameborder=0 align=middle width=100% height=100% scrolling='no' src='linkframe.php' name='frm' id='frm' marginheight=0 marginwidth=0 &gt;&lt;/iframe&gt;"; document.getElementById('tag').value=0; } } &lt;/script&gt; </code></pre> <p>in the iframe you can attach any page. As my page was very long I am not showing that here. I am using one hidden input to keep track on the innerhtml of the table cell (basically the iframe element).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload