We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27bf1c1 + 2d17ff4 commit 66e07fbCopy full SHA for 66e07fb
index.html
@@ -355,7 +355,7 @@ <h3>Sign Up For Newsletters</h3>
355
<h5>get e-mail updates about out latest shop and <span>special offers</span></h5>
356
</div>
357
<div class="form">
358
- <input type="email" placeholder="Your email address">
+ <input type="email" placeholder="Your email address" id="email-address-input">
359
<button>Sign Up</button>
360
361
</section>
script.js
@@ -0,0 +1,5 @@
1
+// focus the cursor on the email-address input
2
+const emailField = document.getElementById("email-address-input");
3
+emailField.focus({
4
+ preventScroll: true,
5
+});
0 commit comments