try this firstw("<script language='javascript' src='" + absURL + "\/inc_1.js'><\/s"+cript>");
w("<script language='javascript' defer='true'>f(str);<\/s"+cript>");

解决方案 »

  1.   

    sorry,should bew("<script language='javascript' src='" + absURL + "\/inc_1.js'><\/s"+"cript>");
    w("<script language='javascript' defer='true'>f(str);<\/s"+"cript>");
      

  2.   

    when "<script language='javascript' src='" + absURL + "\/inc_1.js'><\/script>" written to the new page , it was not loaded and parsed at once(it depend on the computer and network staus ), but you try to call the function in it at once. So when you uploaded files to the remote host, an exception throwed because the "inc_1.js" file wassn't be loaded yet.
      

  3.   

    fason(【阿信】) :The sentence you write: w("<script language='javascript' defer='true'>f(str);<\/s"+"cript>"); will not work as questioner want. He was trying to write something into the DIV tag but your code with "defer" will write out outside of which.So,what's your new answer?BTW,<script language='javascript' defer='true'> should be <script language='javascript' defer> .
      

  4.   

    Please make reference to:
    http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20616845.html