Category Archives: How To Article

ASCII Code for Copyright and Trademark Symbol in Html

ASCII Code for Copyright and Trademark Symbol in Html We can use ASCII codes to create several symbols for HTML.They should be placed into the html just as plain text. The browser render the ASCII code as the correct symbol. Some of them are following:- ASCII Code HTML Code Description ¡ ¢ £ ¤ ¥

How to use time function in javascript

How to use time function in javascript In JavaScript, we are able to execute some code after a specified time-interval. This is called timing events in javascript. It’s very easy to time events in JavaScript. The two key methods that are used are: setTimeout() clearTimeout() Code for thr following is:- <html> <head> <script type="text/javascript"> function Timeevent()

How to use If Else condition in Javascript

How to use If Else condition in Javascript 1. if statement – use this statement to execute some code only if condition is true then else condition is excluded. 2. if…else statement – use this statement to execute some code when if condition is wrong on this condition else code run. Code:- <script type="text/javascript"> var

How to create a alert box in html through javascript

How to create a alert box in html through javascript In html through javascript you can also use alert message by the sample code present below.It is easy to use and also easy to edit. Code:- <html> <head> <script type="text/javascript"> function alert() { alert("Hightechnology!"); } </script> </head> <body> <input type="button" onclick="alert()" value="Hightechnology" /> </body> </html>

How to Show Date on button click through Javascript

Here is a example how to show the date when you click on the button through a javascript. Code:- <html> <head> <script type=”text/javascript”> function displayDate() { document.getElementById(“hightech”).innerHTML=Date(); } </script> </head> <body> <h1>My First Web Page</h1> <p id=”hightech”>Hightechnology.</p> <button type=”button” onclick=”displayDate()”>Display Date</button> </body> </html> Change accoding to your requirement.