スクリプトのページにボタンを追加したいが、それはうまくいかない。私はHTMLでこれを行うことはできませんので、助けてください!document.write(smth)doesnt work
<script type="text/javascript">
document.write('
<p>Sign in</p>
<form action="/chat" method="GET">
<p> Login: <input type="text" name="login"/> </p>
<p> Password: <input type="text" name="password"/> <input type="submit" value="Ok"> </p>
</form>
<br>
<form action="/signup">
<button type = "submit"> button for registration</button>
</form>');
。それはあなたが複数行の文字列をどうやって行うのではないのです。他にも問題がありますが、少なくともいくつかの言語の基本から始まります。 –