Hi Guys for some reason this does not work in IE, any ideas?
I did a quick google and it seems div.innerHTML dosnt work with IE. Is this true?
If so is there a work around
I did a quick google and it seems div.innerHTML dosnt work with IE. Is this true?
If so is there a work around
Code:
<script type="text/javascript"> function addLinks() { var changeOnly = document.getElementsByClassName("changeLinks"); for ( var c = 0; c<changeOnly.length; ++c ) { var divArray = changeOnly[c].getElementsByClassName("productitemcell"); for (var i = 0; i<divArray.length; i++) { var div = divArray[i]; div.innerHTML = '<a href="/customise-forms/' + escape(div.innerHTML) + '">Click Here To Customise</a>'; } } } window.onload = addLinks; </script>
Comment