หน้าแรก
ระบบเครือข่าย
/
การแก้ไขปัญหา
ระบบ
ซอฟต์แวร์
ฮาร์ดแวร์
การเขียนโปรแกรม
สมาร์ทโฟน
Computer
>>
คอมพิวเตอร์
> >>
การเขียนโปรแกรม
>>
HTML
HTML
ออโต้โฟกัสแอตทริบิวต์</h1> <div class="ad ad4"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4480737146802772" crossorigin="anonymous"></script><!-- computer.wsxdn --><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4480737146802772" data-ad-slot="4467655591" data-ad-format="auto" data-full-width-responsive="true"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <article class="article"> <hr/><p style="">แอตทริบิวต์ออโต้โฟกัสขององค์ประกอบ <textarea> ใช้เพื่อตั้งค่าออโต้โฟกัสไปที่ textarea เมื่อโหลดหน้าเว็บ แอตทริบิวต์ออโต้โฟกัสสำหรับองค์ประกอบ <textarea> ที่นำมาใช้ใน HTML5</P> <p> ต่อไปนี้เป็นไวยากรณ์ -</P> <pre><textarea autofocus></pre> <p> ให้เราดูตัวอย่างการใช้แอตทริบิวต์ออโต้โฟกัสขององค์ประกอบ <textarea> -</P> <h2>ตัวอย่าง</h2> <pre><!DOCTYPE html> <html> <body> <h2>Interview Questions</h2> <p>Why do you want go for the Technical Writer Job Profile? (100 words)</p> <textarea rows="6" cols="70" autofocus> Write the answer in 100 words only... </textarea> <p>What are your strengths? (50 words)</p> <textarea rows="4" cols="70" autofocus> Write the answer in 50 words only... </textarea> </body> </html></pre> <h2>ผลลัพธ์</h2> <p> <img loading='lazy' alt='HTML textarea ออโต้โฟกัสแอตทริบิวต์ ' src="/article/uploadfiles/202203/2022033116082648.jpg" /></P> <p> ในตัวอย่างข้างต้น เราได้ตั้งค่า textarea สองอัน−</P> <pre><textarea rows="6" cols="70" autofocus> Write the answer in 100 words only... </textarea> <p>What are your strengths? (50 words)</p> <textarea rows="4" cols="70" autofocus> Write the answer in 50 words only... </textarea></pre> <p> หนึ่งในพื้นที่ข้อความเหล่านี้ที่เราตั้งค่าด้วยโฟกัสอัตโนมัติ ตอนนี้เมื่อใดก็ตามที่หน้าโหลด โฟกัสและเคอร์เซอร์จะมองเห็นได้โดยอัตโนมัติในพื้นที่ข้อความแรก -</P> <pre><textarea rows="6" cols="70" autofocus></pre> <br> </article> <div class="ad ad5"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4480737146802772" crossorigin="anonymous"></script><!-- computer.wsxdn --><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4480737146802772" data-ad-slot="4467655591" data-ad-format="auto" data-full-width-responsive="true"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <section id="turn-page" class="t-over"> <div class="f-start f-align"> <i><img loading='lazy' src="https://th.wsxdn.com/css/img/sanjiao.svg" alt=""></i> <a class='LinkPrevArticle' href='https://th.wsxdn.com/db044w/zx451s/1004064341.html' >HTML <input> ออโต้โฟกัสแอตทริบิวต์ </a> </div> <div class="f-start f-align"> <i><img loading='lazy' src="https://th.wsxdn.com/css/img/sanjiao.svg" alt=""></i> <a class='LinkNextArticle' href='https://th.wsxdn.com/db044w/zx451s/1004064343.html' >HTML <bdo> แท็ก </a> </div> </section> <section class="box1-3"> <ol class="f-between"> <li class="aList-2 aList f-between f-align"> <div> <a href="https://th.wsxdn.com/db044w/zx451s/1004065135.html" class="title"> <p class="r-over r-over-2" title="HTML ที่เลือกแอตทริบิวต์ "> HTML ที่เลือกแอตทริบิวต์ </p> </a> </div> </li><li class="aList-2 aList f-between f-align"> <div> <a href="https://th.wsxdn.com/db044w/zx451s/1004065137.html" class="title"> <p class="r-over r-over-2" title="HTML แอตทริบิวต์ที่เหมาะสมที่สุด "> HTML แอตทริบิวต์ที่เหมาะสมที่สุด </p> </a> </div> </li><li class="aList-2 aList f-between f-align"> <div> <a href="https://th.wsxdn.com/db044w/zx451s/1004065138.html" class="title"> <p class="r-over r-over-2" title="HTML เปิดแอตทริบิวต์ "> HTML เปิดแอตทริบิวต์ </p> </a> </div> </li><li class="aList-2 aList f-between f-align"> <div> <a href="https://th.wsxdn.com/db044w/zx451s/1004065150.html" class="title"> <p class="r-over r-over-2" title="แอตทริบิวต์แถว HTML "> แอตทริบิวต์แถว HTML </p> </a> </div> </li> </ol> </section> </section> <aside class="box-r"> <section class="box4-1"> <strong> HTML </strong> <ol> <li class="f-start"> <i> <img loading='lazy' src="https://th.wsxdn.com/css/img/article-lan.svg" alt=""> </i> <a href="https://th.wsxdn.com/db044w/zx451s/1004064295.html" title="HTML <select> แอตทริบิวต์ออโต้โฟกัส "> <p class="r-over r-over-2">HTML <select> แอตทริบิวต์ออโต้โฟกัส </p> </a> </li> <li class="f-start"> <i> <img loading='lazy' src="https://th.wsxdn.com/css/img/article-lan.svg" alt=""> </i> <a href="https://th.wsxdn.com/db044w/zx451s/1004064314.html" title="HTML <q> อ้างอิงแอตทริบิวต์ "> <p class="r-over r-over-2">HTML <q> อ้างอิงแอตทริบิวต์ </p> </a> </li> <li class="f-start"> <i> <img loading='lazy' src="https://th.wsxdn.com/css/img/article-lan.svg" alt=""> </i> <a href="https://th.wsxdn.com/db044w/zx451s/1004064338.html" title="HTML <textarea> cols แอตทริบิวต์ "> <p class="r-over r-over-2">HTML <textarea> cols แอตทริบิวต์ </p> </a> </li> <li class="f-start"> <i> <img loading='lazy' src="https://th.wsxdn.com/css/img/article-lan.svg" alt=""> </i> <a href="https://th.wsxdn.com/db044w/zx451s/1004064341.html" title="HTML <input> ออโต้โฟกัสแอตทริบิวต์ "> <p class="r-over r-over-2">HTML <input> ออโต้โฟกัสแอตทริบิวต์ </p> </a> </li> <li class="f-start"> <i> <img loading='lazy' src="https://th.wsxdn.com/css/img/article-lan.svg" alt=""> </i> <a href="https://th.wsxdn.com/db044w/zx451s/1004064348.html" title="HTML ออโต้โฟกัสแอตทริบิวต์ "> <p class="r-over r-over-2">HTML ออโต้โฟกัสแอตทริบิวต์ </p> </a> </li> </ol> </section> <ul> <li class="f-start f-align"> <a href="https://th.wsxdn.com/db044w/zx451s/1004065077.html" class="i-text"><p class="r-over r-over-3">HTML แอตทริบิวต์ที่ซ่อนอยู่ </p></a> </li> <li class="f-start f-align"> <a href="https://th.wsxdn.com/db044w/zx451s/1004065102.html" class="i-text"><p class="r-over r-over-3">คุณสมบัติการโฟกัสอัตโนมัติ HTML DOM Textarea </p></a> </li> <li class="f-start f-align"> <a href="https://th.wsxdn.com/db044w/zx451s/1004065121.html" class="i-text"><p class="r-over r-over-3">HTML lang แอตทริบิวต์ </p></a> </li> <li class="f-start f-align"> <a href="https://th.wsxdn.com/db044w/zx451s/1004065131.html" class="i-text"><p class="r-over r-over-3">HTML สงวนแอตทริบิวต์ </p></a> </li> <li class="f-start f-align"> <a href="https://th.wsxdn.com/db044w/zx451s/1004065132.html" class="i-text"><p class="r-over r-over-3">แอตทริบิวต์ HTML อ่านอย่างเดียว </p></a> </li> </ul> <ul class="types f-between"> <li><a class='childclass' href='https://th.wsxdn.com/db044w/hf444z/' target="_self">การเขียนโปรแกรม C</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/bz445u/' target="_self">C++</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/tr446l/' target="_self">Redis</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/rp447j/' target="_self">การเขียนโปรแกรม BASH</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/wu448o/' target="_self">Python</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/nl449f/' target="_self">Java</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/ig450a/' target="_self">ฐานข้อมูล</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/zx451s/' target="_self">HTML</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/ec452w/' target="_self">Javascript</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/db453v/' target="_self">การเขียนโปรแกรม</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/if454a/' target="_self">CSS</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/ge455y/' target="_self">Ruby</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/xv456p/' target="_self">SQL</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/jh457b/' target="_self">IOS</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/om458g/' target="_self">Android</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/mk459f/' target="_self">MongoDB</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/rp460j/' target="_self">MySQL</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/qn461i/' target="_self">C#</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/jh465b/' target="_self">PHP</a></li> <li><a class='childclass' href='https://th.wsxdn.com/db044w/kh471c/' target="_self">SQL Server</a></li> </ul> </aside> </section> <footer> <section class="msg f-center container"> <span class="f-start"> ลิขสิทธิ์ © <a href="https://th.wsxdn.com">https://th.wsxdn.com</a> สงวนลิขสิทธิ์ </span> </section> </footer> </body> </html>