Web Analytics Made Easy -
StatCounter i am real lost - CodingForum

Announcement

Collapse
No announcement yet.

i am real lost

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • i am real lost

    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

  • #2
    try breaking the :
    <script>
    into something like:
    <scr\ipt>
    the same for the closing tag:
    </scr\ipt>

    Comment


    • #3
      <SCRIPT>
      if (amt() > 1) document.write`("<script src='http://myurl.com/js.js'></s" + "cript>)";
      </SCRIPT>

      that should do it for you.
      bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

      i am a loser geek, crazy with an evil streak,
      yes i do believe there is a violent thing inside of me.

      Comment


      • #4
        excellent!

        joh6nn your solution worked once i realized you have a typo at the end )" should be ") thanks got me where i want to be!

        Comment

        Working...
        X