The Browser Window and Scrolling
The browser window (or tab) is accessed by JavaScript using the window object.
The onscroll Event Handler
In order to track scrolling, we use the onscroll event handler. It is activated every time a page is scrolled, even if the page is moved by just one pixel.
window.onscroll = function () {
console.log('The page is scrolled');
}
The pageYOffset Property
The pageYOffset property of the browser window contains the number of pixels that the user has scrolled in the vertical direction:
// If we are at the very top of the page
console.log(window.pageYOffset); // Outputs: 0
// Scroll down the page by 200px
console.log(window.pageYOffset); // Outputs: 200
The horizontal scroll value is stored in the pageXOffset property.
The scrollTo Method
We can use the scrollTo method to scroll the page:
window.scrollTo(X coodinate, Y coordinate);
The X coordinate indicates where we need to scroll the page to in the horizontal direction, and the Y coordinate specifies the value for the vertical direction. When the browser executes an instruction, the indicated point is displayed in the upper left corner of the window. The coordinates are set in pixels, so there is no need to specify the units of measurement:
// Scrolls the page by 100px to the right and by 50px down
window.scrollTo(100, 50);
If it is not possible to scroll the page to the specified coordinates, the browser will scroll the page as far as it can, but it will not enlarge the page. If the entire page is able to fit in the window and there is no scrollbar, then the browser will ignore this instruction.
The onchange Event Handler
The onchange event handler is triggered when the user selects a new value from the dropdown list.
// Find the dropdown list
let select = document.querySelector('select');
// Add the event handler
select.onchange = function () {
// Output the new value to the console
console.log(select.value);
};
The onchange event handler can be used with various elements. For example, it is triggered when the user toggles the checkbox or the radio buttons.
Strict Equality Operator
To check whether the two values are equal, we use the strict equality operator. It is indicated by three equal signs:
'a' === 'a'; // Result: true
'a' === 'b'; // Result: false
The strict equality operator compares two values and returns true if they are equal and false if they are not equal. The values that the operator checks for are called operands.
The Strict Inequality Operator
The strict inequality operator performs the exact opposite function of the strict equality operator. It compares two values and returns false if the values are equal and true if they are not equal.
The strict inequality operator is indicated by an exclamation mark and two equal signs:
'a' !== 'a'; // Result: false
'a' !== 'b'; // Result: true
JavaScript also contains the non-strict equality operator == and the inequality operator !=. We will talk about them in one of the following chapters.
The Logical Operator AND
In order to combine the two parts of the condition, we use the logical operator AND. It is indicated using a double ampersand &&.
if (article.dataset.category !== filter.value && filter.value !== 'all') {
article.classList.add('hidden');
}
The logical operator AND returns true only if both parts of the condition return true. If at least one of the parts returns false, then the condition as a whole will also be considered to be false:
true && true; // Result: true
true && false; // Result: false
false && true; // Result: false
false && false; // Result: false
The Logical Operator OR
The logical operator OR is indicated by two vertical bars and returns true if at least one of the operands returns true:
true || true; // Result: true
true || false; // Result: true
false || true; // Result: true
false || false; // Result: false
Continue
<!DOCTYPE html><html lang="en" class="no-js"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script>var b=document.documentElement.classList;b.remove('no-js');if(!window.Promise||!window.sessionStorage||!!sessionStorage.getItem('muller.v2')){b.add('muller')}</script><link rel="dns-prefetch" href="https://assets.htmlacademy.org"><script async src="https://www.googletagmanager.com/gtag/js?id=G-MXPCRXM48C"></script><script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MXPCRXM48C');
</script><script type="text/javascript">
(function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement("script")
;r.type="text/javascript"
;r.integrity="sha384-d/yhnowERvm+7eCU79T/bYjOiMmq4F11ElWYLmt0ktvYEVgqLDazh4+gW9CKMpYW"
;r.crossOrigin="anonymous";r.async=true
;r.src="https://cdn.amplitude.com/libs/amplitude-5.2.2-min.gz.js"
;r.onload=function(){if(!e.amplitude.runQueuedFunctions){
console.log("[Amplitude] Error: could not load SDK")}}
;var i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)
;function s(e,t){e.prototype[t]=function(){
this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));return this}}
var o=function(){this._q=[];return this}
;var a=["add","append","clearAll","prepend","set","setOnce","unset"]
;for(var u=0;u<a.length;u++){s(o,a[u])}n.Identify=o;var c=function(){this._q=[]
;return this}
;var l=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"]
;for(var p=0;p<l.length;p++){s(c,l[p])}n.Revenue=c
;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"]
;function v(e){function t(t){e[t]=function(){
e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}
for(var n=0;n<d.length;n++){t(d[n])}}v(n);n.getInstance=function(e){
e=(!e||e.length===0?"$default_instance":e).toLowerCase()
;if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};v(n._iq[e])}return n._iq[e]}
;e.amplitude=n})(window,document);
amplitude.getInstance().init("df11525b6880a3c5e2af14f9b6238408", null,{
includeUtm: true,
includeGclid: true,
includeReferrer: true,
deviceIdFromUrlParam: true
}, function (instance) {
window.amplitudeLoaded = true;
});
</script><link rel="stylesheet" href="https://assets.htmlacademy.org/css/core.v284.css"><link rel="stylesheet" href="https://assets.htmlacademy.org/css/profile.v236.css"><link rel="stylesheet" href="https://assets.htmlacademy.org/css/course.v246.css"><link rel="stylesheet" href="https://assets.htmlacademy.org/css/course-interface-light.v20.css"><link rel="stylesheet" href="https://assets.htmlacademy.org/css/course-interface-en.v2.css"><script src="https://assets.htmlacademy.org/js/sentry.js" data-sentry="3774884cc81746ed84c0ba7c5cd4ac7b" data-project="26" data-version="2"></script><link rel="stylesheet" href="/css/custom.css"><link rel="stylesheet" href="/css/cookies.css"><link rel="preload" as="script" href="https://assets.htmlacademy.org/js/general.v274.js"><title>Summary of “Scrolling and operators” — Scrolling and operators — HTML Academy</title><meta name="csrf-token" content="42864caf322823086fca37a7326b9bd2a54"><meta property="og:type" content="website"><meta property="og:site_name" content="HTML Academy"><meta name="twitter:url" property="og:url" content="https://htmlacademy.org"><meta name="twitter:title" property="og:title" content="Interactive online courses HTML Academy"><meta name="twitter:description" property="og:description" content="Together we’ll learn how to work with real code, solve true-to-life problems, use cutting edge technologies. Minimum of boring theory and lots of practical tasks."><meta name="twitter:image" property="og:image" content="https://htmlacademy.org/og/htmlacademy.png"><meta name="twitter:card" content="summary_large_image"><link rel="canonical" href="https://htmlacademy.org/courses/javascript-basics/scrolling-and-operators/summary"><meta name="theme-color" content="#2f358f"></head><body class="course-interface course-interface--light course-interface--full" data-base="/assets/courses/24/"><header class="page-header page-header--course"><div class="page-header__inner"><div class="page-header__top"><a class="page-header__logo" href="/" aria-label="HTML Academy Home"><img src="https://assets.htmlacademy.org/img/logo--small.svg?cs=1218aec0be4a5f23db79ad29a14e30f7f9fb9a25" width="24" height="36" alt="HTML Academy"></a><nav class="main-nav main-nav--mini" role="navigation"><div class="main-nav__course-nav"><a class="main-nav__course-item main-nav__course-button main-nav__course-button--prev" href="/courses/javascript-basics/scrolling-and-operators/logical-operator-and">The logical operator AND</a><div class="main-nav__course-item main-nav__course-list main-nav__course-list--collapsed"><b class="main-nav__course-title">Scrolling and operators</b><span class="main-nav__course-stat">14/15</span><div class="main-nav__course-contents"><a class="main-nav__course-contents-link" href="/courses/javascript-basics/scrolling-and-operators">Back to the list of tasks</a><ul class="main-nav__course-contents-list"><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/onscroll-event-handler">1. The onscroll event handler</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/pageyoffset-property">2. The pageYOffset property</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/show-button">3. Show the “Up” button</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/scrollto-method">4. The scrollTo method</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/scroll-page-onclick">5. Scroll page on click</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/finish-button">6. Finish working on the “Up” button</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/start-filtering">7. Start filtering on the site</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/strict-equality-operator">8. Strict equality operator</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/onchange-event-handler">9. The onchange event handler</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/add-class">10. Add a class to news story from the selected category</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/strict-inequality-operator">11. Strict inequality operator</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/showing-news">12. Showing news from a selected category</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/logical-operator-and">13. The logical operator AND</a></li><li class="main-nav__course-contents-item main-nav__course-contents-item--current"><a href="/courses/javascript-basics/scrolling-and-operators/summary">14. Summary of “Scrolling and operators”</a></li><li class="main-nav__course-contents-item"><a href="/courses/javascript-basics/scrolling-and-operators/rate-site">15. Test: Rate the site</a></li></ul></div></div><a class="main-nav__course-item main-nav__course-button main-nav__course-button--next" href="/courses/javascript-basics/scrolling-and-operators/rate-site">Test: Rate the site</a></div><ul class="main-nav__list main-nav__list--user main-nav__list--user-guest"><li class="main-nav__item" itemprop="name"><a class="main-nav__link" href="/signup?redirect_url=%2Fcourses%2Fjavascript-basics%2Fscrolling-and-operators%2Fsummary" title="Sign up" data-modal="open" data-value="register" itemprop="url"><span class="main-nav__icon" aria-hidden="true"><svg aria-hidden="true"><use xlink:href="/img/sprites/general.svg#user"></use></svg></span>Sign up</a></li><li class="main-nav__item main-nav__item--login" itemprop="name"><a class="main-nav__link" href="/login?redirect_url=%2Fcourses%2Fjavascript-basics%2Fscrolling-and-operators%2Fsummary" title="Log in" data-modal="open" data-value="login" itemprop="url"><span class="main-nav__icon" aria-hidden="true"><svg aria-hidden="true"><use xlink:href="/img/sprites/general.svg#login"></use></svg></span>Log in</a></li></ul></nav></div></div></header><main class="course-container"><div class="course-theory"><div class="course-theory__inner"><section class="course-theory__content"><h1 class="course-theory__content-heading course-theory__content-heading--synopsis">Summary of “Scrolling and operators”</h1><div class="course-theory__content-text"><h2>The Browser Window and Scrolling</h2><p>The browser window (or tab) is accessed by JavaScript using the <code>window</code> object.</p><h3>The onscroll Event Handler</h3><p>In order to track scrolling, we use the <code>onscroll</code> event handler. It is activated every time a page is scrolled, even if the page is moved by just one pixel.</p><pre><code><mark>window.onscroll</mark> = function () {
console.log('The page is scrolled');
}</code></pre><h3>The pageYOffset Property</h3><p>The <code>pageYOffset</code> property of the browser window contains the number of pixels that the user has scrolled in the vertical direction:</p><pre><code>// If we are at the very top of the page
console.log(window.<mark>pageYOffset</mark>); // Outputs: 0
// Scroll down the page by 200px
console.log(window.<mark>pageYOffset</mark>); // Outputs: 200</code></pre><img src="/assets/courses/24/img/scheme1.svg" alt="The window.pageYOffset property" ><p>The horizontal scroll value is stored in the <code>pageXOffset</code> property.</p><h3>The scrollTo Method</h3><p>We can use the <code>scrollTo</code> method to scroll the page:</p><pre><code>window.<mark>scrollTo(X coodinate, Y coordinate)</mark>;</code></pre><p>The X coordinate indicates where we need to scroll the page to in the horizontal direction, and the Y coordinate specifies the value for the vertical direction. When the browser executes an instruction, the indicated point is displayed in the upper left corner of the window. The coordinates are set in pixels, so there is no need to specify the units of measurement:</p><pre><code>// Scrolls the page by 100px to the right and by 50px down
window.scrollTo(100, 50);</code></pre><img src="/assets/courses/24/img/scheme2.svg" alt="How window.scrollTo(100, 50) works" ><p>If it is not possible to scroll the page to the specified coordinates, the browser will scroll the page as far as it can, but it will not enlarge the page. If the entire page is able to fit in the window and there is no scrollbar, then the browser will ignore this instruction.</p><h2>The onchange Event Handler</h2><p>The <code>onchange</code> event handler is triggered when the user selects a new value from the dropdown list.</p><pre><code>// Find the dropdown list
let select = document.querySelector('select');
// Add the event handler
select.<mark>onchange</mark> = function () {
// Output the new value to the console
console.log(select.value);
};</code></pre><p>The <code>onchange</code> event handler can be used with various elements. For example, it is triggered when the user toggles the checkbox or the radio buttons.</p><h2>Strict Equality Operator</h2><p>To check whether the two values are equal, we use the strict equality operator. It is indicated by three equal signs:</p><pre><code>'a' <mark>===</mark> 'a'; // Result: true
'a' <mark>===</mark> 'b'; // Result: false</code></pre><p>The strict equality operator compares two values and returns <code>true</code> if they are equal and <code>false</code> if they are not equal. The values that the operator checks for are called <i>operands</i>.</p><h2>The Strict Inequality Operator</h2><p>The strict inequality operator performs the exact opposite function of the strict equality operator. It compares two values and returns <code>false</code> if the values are equal and <code>true</code> if they are not equal.</p><p>The strict inequality operator is indicated by an exclamation mark and two equal signs:</p><pre><code>'a' <mark>!==</mark> 'a'; // Result: false
'a' <mark>!==</mark> 'b'; // Result: true</code></pre><p>JavaScript also contains the <i>non-strict</i> equality operator <code class="nowrap">==</code> and the inequality operator <code class="nowrap">!=</code>. We will talk about them in one of the <a href="/courses/javascript-programming/conditions/equality">following chapters</a>.</p><h2>The Logical Operator AND</h2><p>In order to combine the two parts of the condition, we use the logical operator AND. It is indicated using a double ampersand <code>&&</code>.</p><pre><code>if (article.dataset.category !== filter.value <mark>&&</mark> filter.value !== 'all') {
article.classList.add('hidden');
}</code></pre><p>The logical operator AND returns <code>true</code> only if both parts of the condition return <code>true</code>. If at least one of the parts returns <code>false</code>, then the condition as a whole will also be considered to be false:</p><pre><code>true && true; // Result: true
true && false; // Result: false
false && true; // Result: false
false && false; // Result: false</code></pre><h2>The Logical Operator OR</h2><p>The logical operator OR is indicated by two vertical bars and returns <code>true</code> if at least one of the operands returns <code>true</code>:</p><pre><code>true || true; // Result: true
true || false; // Result: true
false || true; // Result: true
false || false; // Result: false</code></pre><br><a class="button button--green button--large button--wide button--icon" href="/courses/javascript-basics/scrolling-and-operators/rate-site"><svg aria-hidden="true"><use xlink:href="/img/sprites/general.svg#icon-check-bold"></use></svg>
Continue
</a></div></section></div></div><script
src="https://assets.htmlacademy.org/scripts/courses-spa/htmlacademy-task.v43.js"
data-assets-path="https://assets.htmlacademy.org/scripts/courses-spa/"
data-task-type="theory"
data-lang="en"
></script><script>HtmlacademyTask.setup(function(){});</script></main><footer class="page-footer page-footer--tiny"><div class="page-footer__inner"><p><a href="/docs/cookies">Cookies</a> ∙
<a href="/docs/privacy">Privacy</a> ∙
<a href="/docs/agreement">License Agreement</a> ∙
<a href="/docs/about">About</a> ∙
<a href="/contacts">Contacts</a> ∙
© HTML Academy OÜ, 2019−2026
</p><div class="page-footer__financial"><img src="https://assets.htmlacademy.org/img/visa-white.svg?cs=96e54ec8c587db9d4b1d8d328ffd87c2ebfd9555" alt="VISA" title="VISA" width="35" height="35"><img src="https://assets.htmlacademy.org/img/mastercard-horizontal.v2.svg" alt="Mastercard" title="Mastercard" width="35" height="35"></div></div></footer><div class="modal"><div class="modal__inner"><div class="modal__wrapper js-login hidden"><button class="modal__close icon-close" type="button" title="Close" data-modal="close"></button><h4 class="modal__header">Log in</h4><ul class="modal__social"><li class="modal__social-link modal__social-link--fb"><a href="/login/fb?redirect_url=%2Fcourses%2Fjavascript-basics%2Fscrolling-and-operators%2Fsummary" rel="nofollow" title="Log in via Facebook"><svg aria-hidden="true"><use xlink:href="/img/sprites/general.svg#facebook"></use></svg></a></li><li class="modal__social-link modal__social-link--google"><a href="/login/google?redirect_url=%2Fcourses%2Fjavascript-basics%2Fscrolling-and-operators%2Fsummary" rel="nofollow" title="Log in via Google"><svg height="30" width="30" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="M457.732 216.625c2.628 14.041 4.063 28.743 4.063 44.098C461.796 380.688 381.481 466 260.204 466c-116.023 0-210-93.977-210-210s93.977-210 210-210c56.704 0 104.077 20.867 140.44 54.73l-59.204 59.197v-.135c-22.046-21.002-50-31.762-81.236-31.762-69.297 0-125.604 58.537-125.604 127.841 0 69.29 56.306 127.968 125.604 127.968 62.87 0 105.653-35.965 114.46-85.312h-114.46v-81.902h197.528z"/></svg></a></li></ul><div class="modal__or"><span>or</span></div><form class="modal__form form" action="/login?redirect_url=%2Fcourses%2Fjavascript-basics%2Fscrolling-and-operators%2Fsummary" autocomplete="off" method="post" data-submit="o"><input type="hidden" name="csrf_name" value="csrf69aea5a1c0c46"><input type="hidden" name="csrf_value" value="54c773b8c6cbe72cf0f4b844ab5e4ccc"><div class="form__group"><label class="sr-only" for="login-email">Email</label><input class="field field--text field--full-width" type="email" name="email" placeholder="Email" value="" id="login-email"></div><div class="form__group"><label class="sr-only" for="login-password">Password</label><input class="field field--text field--full-width ym-disable-keys" type="password" name="password" placeholder="Password" id="login-password"></div><input class="button button--full-width" type="submit" data-submit-text="Logging in…" value="Log in"></form><p class="modal__forgot-password"><a href="/recover" data-modal="open" data-value="recover">Forgot your password?</a></p><a class="modal__bottom-link" href="/signup" data-modal="open" data-value="register">Sign up</a></div><div class="modal__wrapper js-register hidden"><button class="modal__close icon-close" type="button" title="Close" data-modal="close"></button><h4 class="modal__header">Sign up</h4><ul class="modal__social"><li class="modal__social-link modal__social-link--fb"><a href="/login/fb?redirect_url=%2Fcourses%2Fjavascript-basics%2Fscrolling-and-operators%2Fsummary" rel="nofollow" title="Log in via Facebook"><svg aria-hidden="true"><use xlink:href="/img/sprites/general.svg#facebook"></use></svg></a></li><li class="modal__social-link modal__social-link--google"><a href="/login/google?redirect_url=%2Fcourses%2Fjavascript-basics%2Fscrolling-and-operators%2Fsummary" rel="nofollow" title="Log in via Google"><svg height="30" width="30" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="M457.732 216.625c2.628 14.041 4.063 28.743 4.063 44.098C461.796 380.688 381.481 466 260.204 466c-116.023 0-210-93.977-210-210s93.977-210 210-210c56.704 0 104.077 20.867 140.44 54.73l-59.204 59.197v-.135c-22.046-21.002-50-31.762-81.236-31.762-69.297 0-125.604 58.537-125.604 127.841 0 69.29 56.306 127.968 125.604 127.968 62.87 0 105.653-35.965 114.46-85.312h-114.46v-81.902h197.528z"/></svg></a></li></ul><div class="modal__or"><span>or</span></div><form class="modal__form form" action="/signup?redirect_url=%2Fcourses%2Fjavascript-basics%2Fscrolling-and-operators%2Fsummary" autocomplete="off" method="post"><input type="hidden" name="csrf_name" value="csrf69aea5a1c0c46"><input type="hidden" name="csrf_value" value="54c773b8c6cbe72cf0f4b844ab5e4ccc"><div class="form__group"><label class="sr-only" for="email">
Email
<span class="required"><span class="sr-only">Required field</span><span class="required__star">*</span></span></label><div class="form__group-fields"><input class="field field--text field--full-width" type="email" name="email" value="" id="email" required placeholder="Email"></div></div><div class="form__group"><label class="sr-only" for="password">
Password
<span class="required"><span class="sr-only">Required field</span><span class="required__star">*</span></span></label><div class="form__group-fields"><input class="field field--text field--full-width" type="password" name="password" value="" id="password" required placeholder="Password"></div></div><div class="form__group"><label class="checkbox"><input class="checkbox__input" type="checkbox" name="agreement" value="1" required><span class="checkbox__text"><span>By signing up, you agree to our <a href="/docs/agreement" target="_blank">License Agreement</a> and <a href="/docs/privacy" target="_blank">Privacy Policy</a>.</span></span></label></div><input class="button button--full-width" type="submit" data-submit-text="Signing up…" value="Sign up"></form><a class="modal__bottom-link" href="/login?redirect_url=%2Fcourses%2Fjavascript-basics%2Fscrolling-and-operators%2Fsummary" data-modal="open" data-value="login">Log in</a></div><div class="modal__wrapper modal__wrapper--no-btn-bottom js-recover hidden"><button class="modal__close icon-close" type="button" title="Close" data-modal="close"></button><h4 class="modal__header">Restore access</h4><p class="modal__text-accent">Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.</p><form class="modal__form form" action="/recover" autocomplete="off" method="post" data-submit="o"><input type="hidden" name="csrf_name" value="csrf69aea5a1c0c46"><input type="hidden" name="csrf_value" value="54c773b8c6cbe72cf0f4b844ab5e4ccc"><div class="form__group"><label class="sr-only" for="recovery-email">Email</label><input class="field field--text field--full-width" type="email" name="email" placeholder="Email" value="" id="recovery-email"></div><script src='https://www.google.com/recaptcha/api.js'></script><div class="form__group"><div class="g-recaptcha" data-sitekey="6LetCTEqAAAAANROWtPzfC7Rfg9iIRiRt2k2FPn7"></div></div><input class="button button--full-width" type="submit" data-submit-text="Sending…" value="Send"></form><p class="modal__text">Forgot to connect your email to the profile? Email us and we’ll help.</p></div></div></div><script async src="https://assets.htmlacademy.org/js/general.v274.js" data-assets="https://assets.htmlacademy.org" data-require="toggle,navigation-courses,modal,form,nav"></script></body></html>