This script will Calculate the percentage of increase/decrease between two units. A simple, effective script.Percentage Gain Javascript Calculator is very useful script.
DEMO:
Clock the visitor time visiting the page
If you want to display the total time a user spend on your webpage then the below javascript code is for you.
Button for printing the page, print the page button .
You can easily add a print button or link to your web page.
1-Add Print Button
The button looks like this:
2-Add Print This Link
The Print link looks like this: print This Page
You can easily add a print button or link to your web page.
1-Add Print Button
<form><input type="button"
value=" Print this page "
onclick="window.print();return false;" /></form>
onclick="window.print();return false;" /></form>
The button looks like this:
<a href="#"
onclick="window.print();return
false;">print</a>
The Print link looks like this: print This Page
So you would like to put a link on your page that will take visitor's back to the previous page and forward to next page. One that works just like the browser back and forward button.
Here is the button that does just that. Whatever page that you were on prior to coming to this page, the following button work browser back and forward button) will return you to it.
Here is the button that does just that. Whatever page that you were on prior to coming to this page, the following button work browser back and forward button) will return you to it.
This is a kind of useless piece of JavaScript code, although I suppose it could be useful for something. I will present you with the code straightaway, that will allow you to dynamically change the background color of the page.
The above code contains a dropdown menu.the background color will change as we change the selected value of dropdown menu.
The above code contains a dropdown menu.the background color will change as we change the selected value of dropdown menu.
Disply calendar on your website
If you want to disply a calendar on your webpage then the below javascript code is for you,this code will display calendar on your webpage and it also highlight the current date.
Just copy paste the below code .
How to close the browser after a button click?
The below Javascript code will help you to close browser windows or popup when someone click on the close button.To close the IE or you can close the windows and exit from windows and popup.
Using Javascript.
For HTML input control use onclick event or OnClientClick for server Button control. Call window.close();
The below Javascript code will help you to close browser windows or popup when someone click on the close button.To close the IE or you can close the windows and exit from windows and popup.
Using Javascript.
For HTML input control use onclick event or OnClientClick for server Button control. Call window.close();
Some time you need to set a image as background of a HTML table The below HTML code will show you how you can set an image as a background of a table.
We can contain image backgrounds, colored backgrounds, borders of different sizes, and an unlimited number of rows and columns.
change the code acording to your need.
We can contain image backgrounds, colored backgrounds, borders of different sizes, and an unlimited number of rows and columns.
<TABLE BORDER="0" CELLPADDING="4" ALIGN="Center" WIDTH="50%">
<TR>
<TD BACKGROUND="yourbgimagepath.gif" WIDTH="50%"></TD>
<TD BGCOLOR="#ffffffff"></TD>
</TR>
</TABLE>
<TR>
<TD BACKGROUND="yourbgimagepath.gif" WIDTH="50%"></TD>
<TD BGCOLOR="#ffffffff"></TD>
</TR>
</TABLE>
change the code acording to your need.
You can change your webpages HTML forms text boxes to match the look of your web site. you can change the background and font colors of your text boxes .The below HTML code will show you how you can change the background and font colors of textboxes.
Display :
<INPUT type="text" STYLE="color: #FFFFFF; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #72A4D2;" size="10" maxlength="30">
Display :