document.write
Posted: Wed Dec 06, 2006 10:35 am
I am trying to have a javascript and a no javascript option for this page I am making. I am just putting the non javascript stuff in <noscript> tags and the javascript stuff I am trying to write out with document.write but...
When I use document.write() I get the error in my FF error console "undetermined string literal" and it points to the first quote mark. here is what I am trying:
When I use document.write() I get the error in my FF error console "undetermined string literal" and it points to the first quote mark. here is what I am trying:
Code: Select all
<script type="text/javascript">
document.write("
<a href=\"Products.php?Action=Remove&Id='.$val->Get('Id').'\"
onclick=\"return confirm(\''.PR_DO_YOU_REALLY_WANT_TO_DELETE_THIS_PRODUCT.'\')\">
Del</a>
");
</script>