GetElementByTagName

Aug 2, 2007

I am trying to write a code that replaces HTML in a Table Row. I am in a situation where I can't put an ID on the table because I don't have full control over the document. I am using a remotely hosted forum called proboards.com and it allows you to put code into the headers and footers of the forum. So there are multiple tables. Here is what I have so far:

document.getElementsByTagName('tr').innerHTML=document.getElementsbyTagName('tr').innerHTML(/Whatever/,'the')

What am I doing wrong?

View 7 Replies


ADVERTISEMENT

Add Second Class To Body With GetElementByTagName?

Jun 13, 2011

How to add a className to the 'Body' tag, without overwriting an already existing class?

I can't use an ID as this constantly changes throughout the site, so that's why I'm targeting the body tag.

BTW, this is just a snippet of the full javascript (utilising cookies etc).code...

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved