Reset forms upon refreshing
This commit is contained in:
Родитель
c1124a9390
Коммит
ddc589fbdd
|
@ -4,6 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Form Autofill Demo: All supported @autocomplete</title>
|
||||
<link rel="stylesheet" href="css/base.css"/>
|
||||
<script type="text/javascript" src="base.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Form Autofill Demo: All supported @autocomplete</h1>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Form Autofill Demo: U.S. @autocomplete</title>
|
||||
<link rel="stylesheet" href="css/base.css"/>
|
||||
<script type="text/javascript" src="base.js"></script>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
"use strict";
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
let forms = document.querySelectorAll("form");
|
||||
for (let form of forms) {
|
||||
form.reset();
|
||||
}
|
||||
});
|
|
@ -4,6 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Form Autofill Demo: Basic @autocomplete</title>
|
||||
<link rel="stylesheet" href="css/base.css"/>
|
||||
<script type="text/javascript" src="base.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Form Autofill Demo: Basic @autocomplete</h1>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Form Autofill Demo: Basic Credit Card @autocomplete</title>
|
||||
<link rel="stylesheet" href="css/base.css"/>
|
||||
<script type="text/javascript" src="base.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Form Autofill Demo: Basic Credit Card @autocomplete</h1>
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
padding: 0.4em 0.2em;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" src="base.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Credit Card</h1>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Form Autofill Demo Page</title>
|
||||
<script type="text/javascript" src="base.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Form Autofill Demo Page</h1>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Form Autofill Demo Page</title>
|
||||
<script type="text/javascript" src="base.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Form Autofill Demo Page</h1>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" src="base.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Form Autofill Demo: Basic Credit Card @autocomplete</h1>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Form Autofill Demo Page</title>
|
||||
<script type="text/javascript" src="base.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Form Autofill Demo Page</h1>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Form Autofill Demo Page</title>
|
||||
<script type="text/javascript" src="base.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Form Autofill Demo Page</h1>
|
||||
|
|
Загрузка…
Ссылка в новой задаче