document.write(smth) doesnt work : I want to add a button on the page in the script but it doesnt work. I cant do this in html because  Please help! 


    <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>');
