Hi Folks,
I am trying to do a global replace on the innerHTML of a DIV. The code below works fine when my regular expression is just /<TABLE/g but when I introduce the extra word it messes up the formatting. Can anyone tell me if there is a problem with it:
var re = /<TABLE BORDER/g;
var myCode = '<P STYLE="page-break-before: always;">My Heading</P><TABLE BORDER';
var HTML = Details.innerHTML.replace(re, myCode)
Mighty
I am trying to do a global replace on the innerHTML of a DIV. The code below works fine when my regular expression is just /<TABLE/g but when I introduce the extra word it messes up the formatting. Can anyone tell me if there is a problem with it:
var re = /<TABLE BORDER/g;
var myCode = '<P STYLE="page-break-before: always;">My Heading</P><TABLE BORDER';
var HTML = Details.innerHTML.replace(re, myCode)
Mighty