]> git.cworth.org Git - empires-html/commitdiff
Disable autocomplete on the character field
authorCarl Worth <cworth@cworth.org>
Sun, 10 May 2020 15:43:59 +0000 (08:43 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 10 May 2020 15:43:59 +0000 (08:43 -0700)
This is intended to prevent multiple players (using a single browser)
from accidentally seeing a name that a previous player entered when
the browser offers it up for autocompletion.

index.html

index 132c5e85cf49da8969babf19345f5a89e2db4789..1e9e8586582edfc5b4ed04780cec820a95b1e669 100644 (file)
@@ -34,7 +34,7 @@
       <input type="text" id="name" required>
 
       <label for="character">Character name</label>
-      <input type="text" id="character" required>
+      <input type="text" id="character" autocomplete="off" required>
 
       <input type="submit" value="Join game">
     </form>