Editing/Deleting META tags with javascript

meta , tag , javascript United Kingdom
  • 12 years ago
    Hi, I can find no reference to tell me that the HEAD of an HTML page is read only but I can only assume it is true as the following HTML simply doesn't work. All I am doing is try to set the content of a meta tag through js. Test refresh
    autorefresh is ON. switch
  • 12 years ago
    Just as a pre-emptive strike. I have also tried: var metatag = metatags[cnt]; metatag.parentnode.removeChild(metatag); It didn't work...

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.” - Dennis Ritchie