google+javascriptbanktwitter@js_bankfacebook@jsbankrss@jsbank
Guest, register






Sum of two random numbers Type or make two numbers have the sum equalled or less 18, then clicking buttons for the sum of two that numbers , view the right; wrong choices and the ratio.


Category: Calculation, Math

Looping alerts on right click Implement this JavaScript to warn visitor if they want to steal something on your web pages with clicking right mouse. When they click right mouse the first time, this JavaScript will show a short alert; if they still click again, this JavaScript will run out the loop of alerts; then they can only exit your web pages by breaking browser.


Category: Funny

Dynamic text on Title Only with 7 code lines, you can make title of your web pages scroll to left from right continually. A short code but useful.


Category: Status, Sound

Dual Function Button This JavaScript allows one button to have two or more functions.


Category: Form

Accessible Compact Forms Tight on space? Use this JavaScript to create a compact form that is accessible and works even when JavaScript and CSS are turned off.


Category: Form, Textarea

Popup on mouseOut If this JavaScript is implemented into your web pages, then everytime visitors move mouse out the body of web pages, it will show a divison to show your major info.


Category: Browser

File Include script Use this JavaScript to target which files you will include on a designated Web page. Easy to set-up and use.


Category: Snippet, Rotation

Rainbow link on mouseOver Implement this JavaScript into your web pages to make all links change color by themself on mouse over event. Colors defined by an array with hexadecimal value, clrArray, you can change and add colors easily. All you need to do is cope all JavaScript code and paste into your web pages, you should save them into a file for using this effect on many pages.


Category: Link, Rainbow

E-mail Validation This JavaScript uses regular expressions to check that a string contains a valid email address. Note that it won't catch all invalid emails, like most similar scripts. However, for most intents and purposes, this JavaScript should serve its purpose well, by rejecting common email typos while leaving room for obscure yet valid emails to pass.


Category: Email

216 Web Safe Colors If you're looking for a 216 web safe color chart, you've come to the right place. However, before reviewing the chart, you may be interested in learning a little bit about the 216 web safe colors. Netscape specified 216 colors that have precedence in web browsers based on the 256 colors displayed within an 8-bit system. As 40 colors displayed differently between PCs and MACs, they were eliminated. These 216 colors, known as web safe colors, are recognized by all web browsers and operating systems, which means these colors will look about the same within any browser.


Category: Utility

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web