Log in

View Full Version : Frame



balusamy
05-06-2008, 06:51 AM
Hi

I used the following code

HTML>
<HEAD>
<TITLE>Welcome to View Profile</TITLE>
</HEAD>
<FRAMESET ROWS="*,1" >
<FRAME SRC="../profile.php?mem_id=2">
<frame src="UntitledFrame-4"></FRAMESET><noframes></noframes>
</HTML>

Now the url open in this frameset, Now I cant come out from this frameset. anybody knows this, let me how to come out from this.

I used this code, when i register in my site, we create sperate folder each user.
Example : www.sitename.com/balu

So all the code open in this folder only. so how to come out from this folder.

jscheuer1
05-06-2008, 07:13 AM
The way to link to a different page from within a frameset and to have that page take over the whole window or tab (if the browser is using tabs) is to use the target="_top" attribute on the link, ex:


<a href="some_page.htm" target="_top">Some Page</a>

tech_support
05-06-2008, 07:13 AM
In the <head> tag of that page, just put
<base target="_top"> and it'll break out of frames for every link.

For just one link, add target="_top" into the <a> tag.

balusamy
05-06-2008, 10:37 AM
Hi jscheuer1

Thanks for your help

Regards
Balusamy

balusamy
05-06-2008, 10:39 AM
Hi tech_support

Thanks for your help

Regards
Balusamy