websocket and showable messages working
This commit is contained in:
parent
01e9b47bc7
commit
27513863cf
5 changed files with 15 additions and 4 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" href="/public/index.css">
|
||||
<meta charset="UTF-8"/>
|
||||
<title>Hello World!</title>
|
||||
<script src="./index.js"></script>
|
||||
<script src="/public/index.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
|
||||
<main>
|
||||
|
||||
<form onsubmit="myFunction()">
|
||||
<form onsubmit="myFunction(); return false;">
|
||||
<label for="fname">Message:</label>
|
||||
<input type="text" id="fname" name="fname" id="inp"><br>
|
||||
<input type="text" id="inp" name="fname"><br>
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue