Meta tags target parent? – HTML / CSS

  html

Q(Question):

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..


<meta http-equiv='refresh' content='0; url=exampleurl.html' target='_parent'>

It doesn’t work like I want it to.

A(Answer):

I think you need to explain in more detail exactly what you are trying to do.

A(Answer):

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?

A(Answer):

By itself, the meta tag doesn’t do anything.

A(Answer):

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…

A(Answer):

Kevin, whats with all these META tag posts lately?

Wish I knew….

A(Answer):

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?

A(Answer):

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?

A(Answer):

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

<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.

A(Answer):

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

<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.

LEAVE A COMMENT