document.write("hello <br>");

解决方案 »

  1.   

    writeln Method--------------------------------------------------------------------------------Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. Syntaxdocument.writeln(sText)ParameterssText Required. String that specifies the text and/or HTML tags to write. Return ValueNo return value. ResIn HTML, the carriage return is ignored unless it occurs within preformatted text. Applies To[ Object Name ] 
    Platform Version 
    Win16:  
    Win32:  
    Mac:  
    Unix:  
    WinCE:  
    Version data is listed when the mouse hovers over a link, or the link has focus. 
     document 
     
    Move the mouse cursor over an element in the Applies To List to display availability information for the listed platforms. 
    --------------------------------------------------------------------------------
      

  2.   

    向浏览器中写信息这样只会产生一个空格;
    在下面这个命令中就可以看到效果了:
    alert("hello /n hello");
      

  3.   

    为什么在document.write句子里这样会产生错误呐?
    go('t1','t2')为某一个函数
    document.write("<a href=# onclick=go('t1','t2')>");//t1,t2为字符串。
    提示:“未结束的脚本”。
    ???