JavaScript Tutorials
Change Text Size On Click With JavaScript
A lot of blogs and websites that have a wide range of users tend to have buttons or images that change the text size for easier readability. This can easily be implemented with a bit of JavaScript and some HTML to attach it to. There are...
Automatically Refresh a Page Using JavaScript or Meta Tags
I try to steer clear of modifying a page without the user triggering the change, much less automatically refresh or redirect a page. There are times when automatically refreshing the page is important, like when you pull up game play-by-play pages on NFL.com or ESPN.com.
Create a JavaScript Confirmation Box
Javascript confirmation boxes aren't used nearly as often as they used to be, mostly due to more advanced usages of JavaScript and modal boxes, but they are still helpful. Whenever I create administrative functionality for my customers, I always use a JavaScript confirmation box before...
Create a JavaScript Refresh Link
Until the advent of AJAX, to view an updated version of a page, you'd have to refresh the page. A page refresh link still has its place today for website that update frequently but don't offer AJAX or META refresh capabilities. The Code There you have it!
When JavaScript Frameworks Collide
Though their theories on JavaScript coding differ, JavaScript framework developers keep a tight lip when it comes to commenting on other frameworks. When another framework is brought up, the developer usually gives generic responses like "they're doing good work" or "they've got a unique approach."...
Create Your Own Custom JavaScript Dollar Function To Select An Element
The "dollar" function has become famous in recent years due to its inception in many popular JavaScript frameworks. MooTools, for example, uses the dollar function to select a single element from the DOM. This functionality is extremely helpful as it allows you to keep...
How To Create A JavaScript Print Link
Oftentimes a novice web user wont think to do something unless they are presented with the option to do so. I've found this to be true of many of the websites I make. I've added "email to a friend" functionality to customer websites and...
How To Create A JavaScript Close Link
Whenever I create a small JavaScript popup window, I offer a "close" link. Since I'm responsible for the new window, I feel it's my job to help them easily get rid of it. The XHTML Create an anchor with the JavaScript "close" call in the "href" attribute: Do...
Yahoo’s NoScript Compatibility Saved My Fantasy Football Team
One of the best parts of Thanksgiving is having another day of the week to sit and watch NFL football. Like any hardcore football fan, I have a more than one fantasy football team under my management. Updating my teams ever week is clearly...
Disable Submit Button Upon Form Submission
Multiple clicks on a "Submit" button can cause duplicate processing if your programming is slow or the user's connection is lagging. Duplicate processing can include duplicate database records, multiple emails, or different types of errors. JavaScript provides an easy way to disable the...