-
Dear Reader,
I have an ASP page which is divided into two frames vertically. The left frame name is "left" and the right frame name is "right".
In the "left" frame i have a .htm file which contains a hyperlink to another .htm file named "newfile.htm". This "newfile.htm" is again a file which is subdivided into two frames. The problem i am facing is that when i click on the link in the link in the "left" frame the "newfile.htm" opens in the "left" frame itself. What i want is that
1) The "newfile.htm" should occupy the whole window.
2) Also what if i want to load the "newfile.htm" file in a new window.
Any Code would be of great help.
Thanks for reading.
-
Sure thing.
1. In order for you to open a link in the right frame, you have to specify the target attribute of the <A tag, i.e:
<A HREF=MyFile.htm target=right>Link to my file</A>
2. If you want to open your link in a new window, then again you'll have to specify a target for it:
<A HREF=MyFile.htm target=_new>Link to my file</A>
-
Help?
The problem is not that i want to open the page in the right window but the new page called should occupy the whole window i.e. replace the existing window containing the frames.
-
Try one of these:
<A HREF=MyFile.htm target=_Top>Link to my file</A>
<A HREF=MyFile.htm target=_Self>Link to my file</A>