Validate Zip code using JavaScript Regular expression

Zip Code

Continuing with my series of JavaScript regular expression today we will see how easy it is to validate zip code using regular expression in JavaScript. Previously we talked about validating email and Social Security number using JS regex. In today’s post, I’ll show you how to use JavaScript regular expression to validate zip code. Let …

Automatically twitter your posts

Twitter is a wonderful tool to promote your blog. Typically after they publish a new post bloggers logon to their twitter account and inform their followers that they have published an interesting new post. But there is a better way to promote your post. twitterfeed automatically informs your followers about your new posts. How cool …

Validate email address using JavaScript regular expression

Last month I wrote about regular expressions in Java, today I’ll show you how to use regular expression in JavaScript to validate email address. Here is the code to validate email address in JavaScript using regular expression. function validateEmail(elementValue){ var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; return emailPattern.test(elementValue); } Explanation: The argument to this method is the email …

Backlink extravaganza

Today I am announcing a new montly backlink giveaway. Every month I’ll invite bloggers to post a link to one of their favorite posts on their blog. I’ll then compile those links in a post on my blog. It is a win-win situation for all of us. I hope to get more traffic and you …

Set focus on the first text field of HTML form.

A HTML form is a very good channel that you can offer to your visitors to contact you. An aesthetically appealing form encourages user to fill and submit it. It is equally important to make the form as user friendly as possible. Today I’ll share a small JavaScript function that will set the focus on …

Best tutorials by not so famous bloggers

Last week DailyBlogTips invited bloggers to write turtorials as part of DBT’s blog writing contest. I submitted my tutorial about Google Custom Search for blogs. In all, 71 excellend tutorials covering wide-ranging topics from blogging, montezing to health were submitted. This contest not only provided an opportunity for many bloggers to present their posts to …

Improve your Alexa rank

If you are thinking of monetizing your new website you should consider imporving your Alexa rank. Most advertisers and advertising serives like Text Link Ads, Sponsored Reviews etc. use Alexa Rank to determine the worth of a link on your web site. Alexa rank is the level of traffic your site received from Alexa toolbar …