diff options
Diffstat (limited to 'files/ru/learn/forms/sending_forms_through_javascript')
| -rw-r--r-- | files/ru/learn/forms/sending_forms_through_javascript/index.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/files/ru/learn/forms/sending_forms_through_javascript/index.html b/files/ru/learn/forms/sending_forms_through_javascript/index.html index fb58b4f06f..ecea212980 100644 --- a/files/ru/learn/forms/sending_forms_through_javascript/index.html +++ b/files/ru/learn/forms/sending_forms_through_javascript/index.html @@ -52,11 +52,11 @@ original_slug: Learn/HTML/Forms/Sending_forms_through_JavaScript <p>Посмотрите на пример:</p> -<pre class="brush: html notranslate"><button>Click Me!</button></pre> +<pre class="brush: html"><button>Click Me!</button></pre> <p>И на JavaScript:</p> -<pre class="brush: js notranslate">const btn = document.querySelector('button'); +<pre class="brush: js">const btn = document.querySelector('button'); function sendData( data ) { console.log( 'Sending data' ); @@ -119,11 +119,11 @@ btn.addEventListener( 'click', function() { <h4 id="Using_a_standalone_FormData_object">Using a standalone FormData object</h4> -<pre class="brush: html notranslate"><button>Click Me!</button></pre> +<pre class="brush: html"><button>Click Me!</button></pre> <p>You should be familiar with that HTML sample. Now for the JavaScript:</p> -<pre class="brush: js notranslate">const btn = document.querySelector('button'); +<pre class="brush: js">const btn = document.querySelector('button'); function sendData( data ) { const XHR = new XMLHttpRequest(), @@ -165,7 +165,7 @@ btn.addEventListener( 'click', function() <p>The HTML is typical:</p> -<pre class="brush: html notranslate"><form id="myForm"> +<pre class="brush: html"><form id="myForm"> <label for="myName">Send me your name:</label> <input id="myName" name="name" value="John"> <input type="submit" value="Send Me!"> @@ -173,7 +173,7 @@ btn.addEventListener( 'click', function() <p>But JavaScript takes over the form:</p> -<pre class="brush: js notranslate">window.addEventListener( "load", function () { +<pre class="brush: js">window.addEventListener( "load", function () { function sendData() { const XHR = new XMLHttpRequest(); @@ -224,7 +224,7 @@ btn.addEventListener( 'click', function() <p>In the following example, we use the {{domxref("FileReader")}} API to access binary data and then build the multi-part form data request by hand:</p> -<pre class="brush: html notranslate"><form id="theForm"> +<pre class="brush: html"><form id="theForm"> <p> <label for="theText">text data:</label> <input id="theText" name="myText" value="Some text data" type="text"> @@ -238,7 +238,7 @@ btn.addEventListener( 'click', function() <p>As you see, the HTML is a standard <code><form></code>. There's nothing magical going on. The "magic" is in the JavaScript:</p> -<pre class="brush: js notranslate">// Because we want to access DOM nodes, +<pre class="brush: js">// Because we want to access DOM nodes, // we initialize our script at page load. window.addEventListener( 'load', function () { |
