I am wondering if there is a way to see rendered/executed code that uses the “document.write” Javascript command to print .html.
In this example we insert this code when the page is served:
=========================================
<SCRIPT LANGUAGE=”JavaScript”>
<!–
clkZone = “obituary”;
ord=Math.random()*10000000000000000;
if (location.search.match(“Page=Directions”)) {
clkZone = “funeral”;
}
document.write(‘<table width=”100%” cellpadding=”0″ cellspacing=”0″ border=”0″><tr><td height=”5″><img src=”/shared-local/images/1pix_trans.gif” width=”1″ height=”5″ border=”0″></td></tr></table>’);
document.write(‘<SCR’ + ‘IPT LANGUAGE=”JavaScript” SRC=”
//–>
</SCRIPT>
=========================================
When I have clients view source on the actual webpage I would like them to see the entire SCR reference with the “clkzone” variable populated in the url.
So basically, is there a way to have the browser show the executed .html that is write by the “document.write” command. Is there a way to grab just the .html and print it below the .js?
Any ideas are helpful!