ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Clear TextBox after alert Ok Click in JavaScript<p>Hi <a class="username" rel="rajeesh">rajeesh</a>,</p> <p>Refer below sample.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <div class="demo_block"> <pre class="brush: html">&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head runat=&#34;server&#34;&gt; &lt;title&gt;&lt;/title&gt; &lt;script type=&#34;text/javascript&#34;&gt; function Save() { alert(document.getElementById(&#39;txtName&#39;).value); document.getElementById(&#39;txtName&#39;).value = &#34;&#34;; } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div&gt; &lt;input type=&#34;text&#34; id=&#34;txtName&#34; /&gt; &lt;br /&gt; &lt;input type=&#34;button&#34; value=&#34;Submit&#34; onclick=&#34;Save();&#34; /&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/401586/Clear-TextBox-after-alert-Ok-Click-in-JavaScript/https://www.aspforums.net:443/Threads/401586/Clear-TextBox-after-alert-Ok-Click-in-JavaScript/Tue, 28 May 2019 08:58:03 GMT