Access to meta tag values

J

James Brown

I would like to display the value of a meta tag on the page. Is this
possible?
 
J

James Brown

Damn - Looks like I'm gona have to bring out PHP to solve this simple
problem.
Thanks any how.
 
J

James Brown

Sure - I had an idea that I could send values to be displayed as meta data.
The web page would be set up to display the meta using FP tools. Then I
would just have to update the meta data but I could change the way the page
looks with FP and the data would 'follow'..
Did that make sense?
 
J

Jon Spivey

<META name="description" content="some text here">

<script type="text/javascript">
var i = document.getElementsByTagName("META");
for(x=0;x<i.length;x++){
if(i[x].name.toLowerCase()=='description'){document.write(i[x].getAttribute("CONTENT"));break}
}
</script>

Cheers,
Jon
 
D

David Berry

You could change the "look" with CSS or by using a database for the
information on the site.
 
M

Murray

I'm with you - if you want something to display on the page, then put it on
the page. I don't get how using <meta> makes this any easier.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top