PDA

View Full Version : i am real lost


pacoonejr
06-30-2002, 06:36 PM
i am tryin to get something like this to work


<SCRIPT>
if (amt() > 1) document.write"<script src='http://myurl.com/js.js'></script>";
</SCRIPT>


but this tag </script> INSIDE the document.write part keeps prematurely closing the script and trashing the whole process. please advise......

pac

x_goose_x
06-30-2002, 06:53 PM
try breaking the :
<script>
into something like:
<scr\ipt>
the same for the closing tag:
</scr\ipt>

joh6nn
06-30-2002, 06:55 PM
<SCRIPT>
if (amt() > 1) document.write`("<script src='http://myurl.com/js.js'></s" + "cript>)";
</SCRIPT>

that should do it for you.

pacoonejr
06-30-2002, 07:10 PM
joh6nn your solution worked once i realized you have a typo at the end )" should be ") thanks got me where i want to be!