Found item by Tags: javascript

Regular Expression to restrict special character

<p>How to use Regular Expression to restrict special characters. Following code will help you&nbsp;restrict special characters.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &nbsp; &lt;title&gt;Regular Expression to restrict special characters&lt;/title&gt; &nbsp; &lt;meta charset="utf-8"&gt; &nbsp; &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; &nbsp; &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"&gt; &nbsp; &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;br&gt;&lt;br&gt;<br />&lt;input type="text" id="search" &gt; &nbsp;&lt;script&gt; $("#search").keypress(function(e) { &nbsp;&nbsp; &nbsp;$("#error_sp_msg").remove(); &nbsp;&nbsp; &nbsp;var k= e.keyCode, &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$return = ((k &gt; 64 &amp;&amp; k &lt; 91) || (k &gt; 96 &amp;&amp; k &lt; 123) || k == 8 || k == 32 &nbsp;|| (k &gt;= 48 &amp;&amp; k &lt;= 57)); &nbsp; &nbsp; &nbsp; if(!$return) { &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;$("&lt;span/&gt;",{ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;"id" : "error_sp_msg", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "html" &nbsp;&nbsp; &nbsp;: "Special characters not allowed !!!!!" &nbsp; &nbsp; &nbsp; &nbsp; }).insertAfter($(this)); &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;return false; &nbsp; &nbsp; &nbsp; } }); &nbsp;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
Read More...

How to allow only alphabets in input field in Jquery

<p>How to name validation using Jquey Regex. It is better approach to use validation. It will block all other character when you will type instead of Alphabet.</p> <pre><code>&lt;!DOCTYPE html&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&nbsp;&nbsp; &nbsp;&lt;title&gt;&lt;/title&gt;<br />&nbsp;&nbsp; &nbsp;&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;script&gt;<br />&nbsp;&nbsp; &nbsp;$(document).ready(function(){<br />&nbsp; &nbsp; $("#inputTextBox").keypress(function(event){<br />&nbsp; &nbsp; &nbsp; &nbsp; var inputValue = event.charCode;<br />&nbsp; &nbsp; &nbsp; &nbsp; if(!(inputValue&gt;= 65 &amp;&amp; inputValue &lt;= 120) &amp;&amp; (inputValue!= 32 &amp;&amp; inputValue!= 0)){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; event.preventDefault();<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; });<br />});<br />&lt;/script&gt;<br />&lt;input id="inputTextBox" type="text" placeholder="Enter Name"&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;</code></pre> <p>&nbsp;</p>
Read More...

Name validation using Regex in JavaScript

<p>How to name validation using JavaScript in&nbsp;Regex. It is better approach to use validation. It will block all other character when you will type instead of alphabet.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &nbsp;&nbsp; &nbsp;&lt;title&gt;&lt;/title&gt; &nbsp;&nbsp; &nbsp;&lt;script type="text/javascript"&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;function ValidateAlpha(evt){ &nbsp; &nbsp; &nbsp; &nbsp; var keyCode = (evt.which) ? evt.which : evt.keyCode &nbsp; &nbsp; &nbsp; &nbsp; if ((keyCode &lt; 65 || keyCode &gt; 90) &amp;&amp; (keyCode &lt; 97 || keyCode &gt; 123) &amp;&amp; keyCode != 32) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true; &nbsp; &nbsp; } &nbsp;&nbsp; &nbsp;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;label for="cname" class="label"&gt;NAME:&lt;/label&gt; &lt;input type="text" name="" onKeyPress="return ValidateAlpha(event);" placeholder="NAME"&gt; &lt;/body&gt; &lt;/html&gt;</code></pre>
Read More...

How to validate number using Regex in JavaScript

<p>How to number validation using JavaScript Regex. It is better approach to use validation. It will block all other character when you will type instead of Number.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &nbsp;&nbsp; &nbsp;&lt;title&gt;&lt;/title&gt; &nbsp;&nbsp; &nbsp;&lt;script type="text/javascript"&gt; &nbsp;&nbsp; &nbsp;function isNumberKey(evt){ &nbsp; &nbsp; var charCode = (evt.which) ? evt.which : evt.keyCode &nbsp; &nbsp; if (charCode != 46 &amp;&amp; charCode &gt; 31 &amp;&amp; (charCode &lt; 48 || charCode &gt; 57)) &nbsp; &nbsp; &nbsp; &nbsp; return false; &nbsp; &nbsp; &nbsp; &nbsp; return true; &nbsp;&nbsp; &nbsp;} &nbsp;&nbsp; &nbsp;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;label for="cname" class="label"&gt;Mobile Number:&lt;/label&gt; &lt;input type="text" name="" maxlength="10" onKeyPress="return isNumberKey(event);" placeholder="number"&gt; &lt;/body&gt; &lt;/html&gt;</code></pre>
Read More...

How to send mail in PHP

<p>It is an easy way to mail anyone in PHP, only you have to use the mail method. The below code will help you to integrate the mailing system in your project.</p> <pre><code>&lt;html&gt; &nbsp; &nbsp;&lt;head&gt; &nbsp; &nbsp; &nbsp; &lt;title&gt;Sending HTML email using PHP&lt;/title&gt; &nbsp; &nbsp;&lt;/head&gt; &nbsp; &nbsp;&lt;body&gt; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;form method="POST" action="mail.php"&gt; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;input type="email" name="eml" placeholder="Enter your email"&gt;&lt;br&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;input type="text" name="subj" placeholder="Enter your subject"&gt;&lt;br&gt; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;textarea rows="3" cols="22" name="msg" placeholder="Enter your Message"&gt;&lt;/textarea&gt;&lt;br&gt;<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;input type="submit" value="MAIL ME"&gt; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/form&gt; &nbsp; &nbsp; &nbsp; &lt;?php &nbsp; &nbsp; &nbsp; if(isset($_POST["eml"],$_POST["subj"],$_POST["msg"])) { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// $to = "aprogram7@gmail.com"; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// $subject = "This is subject"; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$to=$_POST["eml"]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$subject=$_POST["subj"]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$message=$_POST["msg"]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// $message = "&lt;b&gt;This is HTML message.&lt;/b&gt;"; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// $message .= "&lt;h1&gt;This is headline.&lt;/h1&gt;"; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$header = "From:admin7@gmail.com"; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$header .= "Cc:admin7@gmail.com"; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$header .= "MIME-Version: 1.0"; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$header .= "Content-type: text/html"; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$retval = mail ($to,$subject,$message,$header); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if( $retval == true ) { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo "Message sent successfully..."; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}else { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo "Message could not be sent..."; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} &nbsp; &nbsp; &nbsp;} &nbsp; &nbsp; &nbsp;?&gt; &nbsp; &nbsp;&lt;/body&gt; &lt;/html&gt;</code></pre>
Read More...

How to use kendo Date Picker

<p>It is easy way to use kindo datepicker. Only you can use cdn. if you do not use cdn then convert into library file on your local system.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;!-- Date Picker final --&gt; &lt;link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.1.115/styles/kendo.common.min.css"/&gt; &lt;link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.1.115/styles/kendo.silver.min.css"/&gt; &lt;script src="https://code.jquery.com/jquery-1.12.4.min.js"&gt;&lt;/script&gt; &lt;script src="https://kendo.cdn.telerik.com/2019.1.115/js/kendo.all.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="form-group"&gt; &lt;label for="dob"&gt;Date of Birth &lt;span class="madatory"&gt;*&lt;/span&gt;&lt;/label&gt; &lt;input type="text" class="form-control datePicker" id="dob" name="dob" placeholder="DD/MM/YYYY" &gt; &lt;!-- valid1(); --&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; $("#dob").kendoDatePicker({ max: new Date(), format: "dd/MM/yyyy", }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt;<!-- Date Picker final --></code><code> </code></pre>
Read More...

How to filter data using JavaScript in bootstrap 4

<p>This is an easy way to filter all types of data using bootstrap4. only you have to use some link. You can also convert the online URL and use it as a local machine.</p> <pre><code> &lt;!DOCTYPE html&gt; &nbsp;&nbsp; &nbsp;&lt;html lang="en"&gt; &nbsp;&nbsp; &nbsp;&lt;head&gt; &nbsp;&nbsp; &nbsp; &nbsp;&lt;title&gt;Bootstrap Example&lt;/title&gt; &nbsp;&nbsp; &nbsp; &nbsp;&lt;meta charset="utf-8"&gt; &nbsp;&nbsp; &nbsp; &nbsp;&lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; &nbsp;&nbsp; &nbsp; &nbsp;&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"&gt; &nbsp;&nbsp; &nbsp; &nbsp;&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt; &nbsp;&nbsp; &nbsp; &nbsp;&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"&gt;&lt;/script&gt; &nbsp;&nbsp; &nbsp; &nbsp;&lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"&gt;&lt;/script&gt; &nbsp;&nbsp; &nbsp;&lt;/head&gt; &nbsp;&nbsp; &nbsp;&lt;body&gt;<br />&nbsp;&nbsp; &nbsp;&lt;div class="container mt-3"&gt; &nbsp;&nbsp; &nbsp; &nbsp;&lt;input class="form-control" id="myInput" type="text" placeholder="Search.."&gt; &nbsp;&nbsp; &nbsp; &nbsp;&lt;br&gt; &nbsp;&nbsp; &nbsp; &nbsp;&lt;table class="table table-bordered"&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;thead&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr class="bg-info"&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;th&gt;ID&lt;/th&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;th&gt;NAME&lt;/th&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;th&gt;Email&lt;/th&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;th&gt;Address&lt;/th&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;/thead&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;tbody id="myTableehai"&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;101&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Alok&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;alok@gmail.com&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Noida&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;102&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Praveen&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;praveen@mail.com&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Delhi&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;103&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Sam&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Sam@gmail.com&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Goa&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;104&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Deepti&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Deepti@gmail.com&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;Gr Noida&lt;/td&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;/tbody&gt; &nbsp;&nbsp; &nbsp; &nbsp;&lt;/table&gt; &nbsp;&nbsp; &nbsp;&lt;/div&gt;<br /> &nbsp; &nbsp;&lt;script&gt; &nbsp;&nbsp; &nbsp;$(document).ready(function(){ &nbsp;&nbsp; &nbsp; &nbsp;$("#myInput").on("keyup", function() { &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;var value = $(this).val().toLowerCase(); &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;$("#myTableehai tr").filter(function() { &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$(this).toggle($(this).text().toLowerCase().indexOf(value) &gt; -1) &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}); &nbsp;&nbsp; &nbsp; &nbsp;}); &nbsp;&nbsp; &nbsp;}); &nbsp;&nbsp; &nbsp;&lt;/script&gt;<br /> &nbsp; &nbsp;&lt;/body&gt; &nbsp;&nbsp; &nbsp;&lt;/html&gt;</code></pre>
Read More...

How to remove html and php extension from url

<p>It is so easy to remove ".html" and ".php" extension from the webpage. Only You have to create ".htaccess" &nbsp;file and save it.&nbsp;<br />Now you can copy the given code and past it in httaccess file.</p> <p>Before creating you must have to know how to link any webpage. The following given example will help you.<br />=&gt; If you have created any web page with &nbsp;"index.html" then remove the extension and use like "index" this.<br />=&gt; If you have created any web page with &nbsp;"index.php" then remove the extension and use like "index" &nbsp;this.</p> <pre><code> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php [NC,L] </code></pre> <pre><code> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^(.*)$ $1.html [NC,L] </code></pre>
Read More...

How to create Comment Form using HTML

<p>You can create simple comment form in HTML.&nbsp;&nbsp;following code will help you to integrate&nbsp;&nbsp;it</p> <pre><code>&lt;!DOCTYPE html&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;<br />&lt;style&gt;<br />body {font-family: Arial, Helvetica, sans-serif;}<br />* {box-sizing: border-box;}<br />.open-button {<br />&nbsp; background-color: #555;<br />&nbsp; color: white;<br />&nbsp; padding: 16px 20px;<br />&nbsp; border: none;<br />&nbsp; cursor: pointer;<br />&nbsp; opacity: 0.8;<br />&nbsp; position: fixed;<br />&nbsp; bottom: 23px;<br />&nbsp; right: 28px;<br />&nbsp; width: 280px;<br />}<br />.form-popup {<br />&nbsp; display: none;<br />&nbsp; position: fixed;<br />&nbsp; bottom: 0;<br />&nbsp; right: 15px;<br />&nbsp; border: 3px solid #f1f1f1;<br />&nbsp; z-index: 9;<br />}<br />.form-container {<br />&nbsp; max-width: 300px;<br />&nbsp; padding: 10px;<br />&nbsp; background-color: white;<br /><br />}<br />.form-container input[type=text], .form-container input[type=password] {<br />&nbsp; width: 100%;<br />&nbsp; padding: 15px;<br />&nbsp; margin: 5px 0 22px 0;<br />&nbsp; border: none;<br />&nbsp; background: #f1f1f1;<br />}<br />.form-container input[type=text]:focus, .form-container input[type=password]:focus {<br />&nbsp; background-color: #ddd;<br />&nbsp; outline: none;<br />}<br />.form-container .btn {<br />&nbsp; background-color: #4CAF50;<br />&nbsp; color: white;<br />&nbsp; padding: 16px 20px;<br />&nbsp; border: none;<br />&nbsp; cursor: pointer;<br />&nbsp; width: 100%;<br />&nbsp; margin-bottom:10px;<br />&nbsp; opacity: 0.8;<br />}<br /><br />/* Add a red background color to the cancel button */<br />.form-container .cancel {<br />&nbsp; background-color: red;<br />}<br />/* Add some hover effects to buttons */<br />.form-container .btn:hover, .open-button:hover {<br />&nbsp; opacity: 1;<br />}<br />&lt;/style&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;button class="open-button" onclick="openForm()"&gt;Enquery Now&lt;/button&gt;<br />&lt;div class="form-popup" id="myForm"&gt;<br />&nbsp; &lt;form action="#" class="form-container"&gt;<br />&nbsp; &nbsp; &lt;input type="text" placeholder="Enter Email" name="email" required&gt;<br />&nbsp; &nbsp; &lt;input type="password" placeholder="Enter Password" name="psw" required&gt;<br />&nbsp; &nbsp; &lt;textarea cols="36" rows="4" placeholder="Enter Message" name="psw" required&gt;&lt;/textarea&gt;<br />&nbsp; &nbsp; &lt;button type="submit" class="btn"&gt;Submit Here&lt;/button&gt;<br />&nbsp; &nbsp; &lt;button type="button" class="btn cancel" onclick="closeForm()"&gt;Close&lt;/button&gt;<br />&nbsp; &lt;/form&gt;<br />&lt;/div&gt;<br />&lt;script&gt;<br />function openForm() {<br />&nbsp; document.getElementById("myForm").style.display = "block";<br />}<br />function closeForm() {<br />&nbsp; document.getElementById("myForm").style.display = "none";<br />}<br />&lt;/script&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;</code></pre>
Read More...

How to use Bar code Scanner

<p>Hello Friends it is very interesting that you can use bar code. It is so simple to use any languagou have you send dynamic barcode data. Following code will help you to implement it.</p> <pre><code> <p>&lt;!DOCTYPE html&gt;<br /> &lt;html&gt;<br /> &lt;head&gt;<br /> &nbsp; &lt;title&gt;&lt;/title&gt;<br /> &lt;/head&gt;<br /> &lt;body&gt;&lt;center&gt;<br /> &nbsp; &lt;img src=&quot;https://api.qrserver.com/v1/create-qr-code/?size=150x150&amp;data=Agyanadda&quot;&gt;<br /> &lt;/center&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;</p> </code></pre>
Read More...

How to disable back button in javascript

<p>it is simple to disable back button in browswe useing javascript. following example will help you to implement it.</p> <pre><code> <p>&lt;html&gt;<br /> &lt;head&gt;<br /> &nbsp; &nbsp; &lt;title&gt;Diabled back&lt;/title&gt;<br /> &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; function preventBack() { window.history.forward(); }<br /> &nbsp; &nbsp; &nbsp; &nbsp; setTimeout(&quot;preventBack()&quot;, 0);<br /> &nbsp; &nbsp; &nbsp; &nbsp; window.onunload = function () { null };<br /> &nbsp; &nbsp; &lt;/script&gt;</p> <p>&lt;/head&gt;<br /> &lt;body&gt;<br /> &nbsp; &nbsp; &lt;h3&gt;See back browser icon disabled&lt;/h3&gt;<br /> &nbsp; &nbsp; &lt;hr /&gt;<br /> &nbsp; &nbsp; &lt;a href =&quot;http://agyanadda.com&quot;&gt;Redirect to Home&lt;/a&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;</p> </code> </pre>
Read More...
Featured
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere