Add more height to an Input element using Javascript: <input type=”text” id=”charAndSymbolsInput” style=”height: 60px; font-size: 20px; line-height: 60px;”> <button type=”button”…
With this method (supported by all major browsers, including IE 4), you can take an arbitrary HTML string, and insert…
Setting the value of innerHTML lets you easily replace the existing contents of an element with new content. For example,…
Clear Input Field on Focus: <!– When the input field gets focus, replace its current value with an empty string…
<!– The text field –> <input type=”text” value=”Hello World” id=”myInput”> <!– The button used to copy the text –> <button onclick=”myFunction()”>Copy text</button> <script> function myFunction()…
Auto Select Textarea Text: <textarea rows=”10″ cols=”50″ onclick=”this.focus();this.select()” readonly=”readonly”> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod…
On every keystroke, a JavaScript event is triggered to convert the value to lowercase. <input type=”text” onkeyup=”this.value = this.value.toLowerCase();”>
On every keystroke, a JavaScript event is triggered to convert the value to uppercase. <input type=”text” onkeyup=”this.value = this.value.toUpperCase();”>
The code below can be used to generate images so that you can physically see what your map looks like.…
HTML redirects Perhaps the simplest way to redirect to another URL is with the Meta Refresh tag. We can place…