How to replace
<script> var url = document.getElementById(“url_key”); function replacespace(){ url.value = url.value.replace(/[‘\” ]/g,’-‘); url.value = url.value = url.value.toLowerCase(); } </script>
Website Designing Blog
<script> var url = document.getElementById(“url_key”); function replacespace(){ url.value = url.value.replace(/[‘\” ]/g,’-‘); url.value = url.value = url.value.toLowerCase(); } </script>
Using Below code we can modify our google translate dropdown menu. <!– Modified by Novikov.ua –> <style type=”text/css”> a.gflag { vertical-align: middle; font-size: 15px; padding:
<!DOCTYPE html> <html lang=”en-US”> <head> </head> <body> <div id=”google_translate_element”></div> <script type=”text/javascript”> function googleTranslateElementInit() { new google.translate.TranslateElement( {pageLanguage: ‘en’}, ‘google_translate_element’ ); } </script> <script type=”text/javascript” src=
Below is the code for google search bar in our website <form action=”https://www.google.com/search” class=”searchform” method=”get” name=”searchform” target=”_blank”> <input name=”sitesearch” type=”hidden” value=”eyeshiv.com”> <input autocomplete=”on” class=”form-control search”
How to remove empty space form Input box using Javascript <input id=”inp”> <input id=”inp” type=”text” /> <script language=”JavaScript”> function emtyspace(){ var x = document.getElementById(“inp”);
Sementic in HTML helps the screen readers to find the main information from the website. also Sementic tag helps developer to find error on the
If you declear a variable using var and regular function, declaration of it automatically most of the top of it’s scope. Hosting work with only
<html> <body> <script> var a = [3,5,7,8]; var ra = []; for (var i = a.length-1; i>=0; i–) { var reverse = a[i]; ra.push(reverse); }