第三个问题弹出对话框alert('')怎么换行显示其中内容?

解决方案 »

  1.   

    <input type="button" value="go" name="B1" onclick="javascript:window.location.href='http://1.com/1.php?username=user'"改成<input type="button" value="go" name="B1"
    onclick="javascript:window.open('http://1.com/1.php?username=" + document.all.T1.value + "')"
      

  2.   

    <input type="button" name="Button" value="复制到剪贴板" onClick=copy('txtOutput') >改成<input type="button" name="Button" value="复制到剪贴板" 
    onClick="copy('txtOutput');alert('复制成功');" >
      

  3.   

    <input type="button" value="go" name="B1" onclick="javascript:window.location.href='http://1.com/1.php?username=user'"改成<input type="button" value="go" name="B1"
    onclick="javascript:window.open('http://1.com/1.php?username=" + document.all.T1.value + "')" 没用呀,你看http://www.hywq.com/bbs/post.asp?action=post&boardid=2
      

  4.   

    还有,问一下alert怎么换行?
      

  5.   

    http://www.hywq.com/bbs/post.asp?action=post&boardid=2  就是这里,你看一下,输入用户名点按钮总归出错,因为onclick="window.open('http://photo.163.com/openalbum.php?username=+ document.all.T1.value +')"   =+ document.all.T1.value +被浏览器当作username=后面的内容了,所以一直出错,应该怎么改?