0

Hi Friends,

I have written one HTML page in which i have on button with window.open function. so it opens in new tab. but i want it to open in it frame in that HTML page.

Is it possible any how ? Or is there other way ?

**Thanks**
3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by esma.ramirez
0
<script type='text/javascript'><!--
(document.getElementById) ? dom = true : dom = false;
function hideIt(layer) {
if (dom) {document.getElementById(layer).style.visibility='hidden';}
if (document.layers) {document.layers[layer].visibility='hide';} }
function showIt(layer) {
if (dom) {document.getElementById(layer).style.visibility='visible';}
if (document.layers) {document.layers[layer].visibility='show';} }
--></script>
<div id="layer1" style="position:fixed; width:50%; bottom:0;top:auto;z-index:30; 
left:0; visibility:hidden; padding:10px; margin:10px; background:#ececec; border: 1px solid;">
<b>text</b>:<br> Text Text Text Text Text Text Text Text Text Text Text Text Text
<UL>
<li> Text Text Text Text Text Text Text Text Text Text Text Text Text
<li> Text Text Text Text Text Text Text Text Text Text Text Text Text
<li> Text Text Text Text Text Text Text Text Text Text Text Text Text
<li> Text Text Text Text Text Text Text Text Text Text Text Text Text
<li> Text Text Text Text Text Text Text Text Text Text Text Text Text
<li> Text Text Text Text Text Text Text Text Text Text Text Text Text
</ul>
<button id="form" onClick="hideIt('layer1');">Close</button></div>
<button id="form" onClick="showIt('layer1');" >show Important Information</button>
0

Hi, try this:

<a href="Javascript:Void(0)" onclick="Javascript:FrameRedirect();">CHANGE FRAME CONTENT</a>
<script type="text/javascript">
function FrameRedirect(){
    window.opener.top.frames.top.location.href='URL';
}
</script>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.