LiveZilla Live Help
 


Go Back   Chime Host - Web Hosting Forum > World Wide Web > Programming / Scripting / Coding Forum > Javascript
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Javascript Need help with the (primarily) client-side programming language? This is the place. Includes discussion on AJAX (Asynchronous JavaScript and XML).

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-2009, 10:28 AM
Junior Member
 
Join Date: Oct 2009
§cott™ is on a distinguished road
Default JavaScript: get meta value?

<meta name="Keywords" content="some keywords"/>

Using javascript how to i get the content attribute value from the meta tag?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-17-2009, 10:28 AM
Junior Member
 
Join Date: Oct 2009
Kris is on a distinguished road
Default

insofar as I know this is not possible. There is no js for this. For kicks you could try to add an ID to the meta tag (ie <meta name=Keywords" content="some keywords" id="myMeta">) and then try a document.getElementById('myMeta"), but I am about 99% sure that won't work, and about 100% sure it won't work cross browser.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 10:48 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ChimeHost, a Profuse Solutions LLC company