By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,759 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

Meta tags target parent?

The1corrupted
100+
P: 134
Alright, I have a meta tag and I'm working with frames, so I want the meta tag to target the good ol' "_parent" put when I put this code in..
Expand|Select|Wrap|Line Numbers
  1. <meta http-equiv='refresh' content='0; url=exampleurl.html' target='_parent'>
  2.  
It doesn't work like I want it to.
Apr 1 '07 #1
Share this Question
Share on Google+
9 Replies


KevinADC
Expert 2.5K+
P: 4,059
I think you need to explain in more detail exactly what you are trying to do.
Apr 1 '07 #2

Expert 100+
P: 1,892
I think you need to explain in more detail exactly what you are trying to do.
Kevin, whats with all these META tag posts lately?
Apr 1 '07 #3

drhowarddrfine
Expert 5K+
P: 7,435
By itself, the meta tag doesn't do anything.
Apr 1 '07 #4

The1corrupted
100+
P: 134
I think you need to explain in more detail exactly what you are trying to do.
I'm working with the evil frames and, well, I want to kill them with a Meta tag...
Apr 1 '07 #5

KevinADC
Expert 2.5K+
P: 4,059
Kevin, whats with all these META tag posts lately?
Wish I knew....
Apr 1 '07 #6

The1corrupted
100+
P: 134
Aaaanyway... I need a <meta> tag to target a parent, if possible because this is used for a log out function in PHP. When you log out, all frames should be gone and the only way I know how to do that is to have a link target the '_parent'. I tried it with a meta tag and it didn't work. Suggestions?
Apr 1 '07 #7

Expert 100+
P: 1,892
Aaaanyway... I need a <meta> tag to target a parent, if possible because this is used for a log out function in PHP. When you log out, all frames should be gone and the only way I know how to do that is to have a link target the '_parent'. I tried it with a meta tag and it didn't work. Suggestions?
Maybe this is more of a PHP question?
Apr 2 '07 #8

KevinADC
Expert 2.5K+
P: 4,059
target="_parent" is the correct attribute and value to use to bust out of a framed document. Try like this:

Expand|Select|Wrap|Line Numbers
  1. <meta http-equiv='refresh' content='0; url=exampleurl.html target=_parent'>
note I changed the quoting. If that does not work, the meta tag may not recognize anything after the URL.
Apr 2 '07 #9

The1corrupted
100+
P: 134
target="_parent" is the correct attribute and value to use to bust out of a framed document. Try like this:

Expand|Select|Wrap|Line Numbers
  1. <meta http-equiv='refresh' content='0; url=exampleurl.html target=_parent'>
note I changed the quoting. If that does not work, the meta tag may not recognize anything after the URL.
Gotcha, thanks.
Apr 3 '07 #10

Post your reply

Sign in to post your reply or Sign up for a free account.