WebDev Masters

Web Development & Webmaster Resources

Browsing Posts in Javascript

Pro JavaScript – Libraries

JavaScript has seen a resurgence in popularity in the last five years.  What was once almost written off in the early 2000s is now a hot skill to have for any web developer.  The landscape has changed a lot over those years, and JavaScript developers have a number of options at their disposal to make development much much easier.

Popular Libraries

Let’s face it – writing a bunch of code by hand stinks.  It’s time consuming, error prone, and you’re often stuck trying to figure out basic problems and making sure things work the same across all the major browsers.  A number of libraries and frameworks have sprung up over the last few years to help ease the pain, and let you focus more on your business logic rather than the plumbing.

jQuery
jQuery is one of the most popular, because it’s intended to be lightweight and easy to integrate in to existing projects.  Often with just a couple of lines of code you can achieve some pretty impressive animation and fading effects – perfect for adding that “web 2.0″ touch to your website.

YUI
This toolkit from Yahoo! is another popular choice for developers, not least because the weight of Yahoo! is behind it.  This is the code they use on their own sites, and it’s been tested, tested and tested some more to ensure a good experience on all the major browsers.  Their documentation is solid, and the community is strong, although not as large as jQuery’s.  The biggest drawback to YUI may be its verbosity – it often takes 3 or 4 lines of code to accomplish what jQuery can do in 1 or 2.

Dojo
Dojo is another one with large corporate support – IBM has developers working on and contributing to Dojo, and they use Dojo in some of their own web products.  Like YUI, it’s been a victim of verbosity, but also like YUI, Dojo’s aims are larger than those of jQuery.  Dojo is one of the few major toolkits to offer internationalization support, for instance.  If you have a major web project, you owe it to yourself to consider Dojo, but prepare for a steep learning curve.

MooTools, Prototype, ExtJS, mochikit, ZK and others are also candidates to consider, although all tend to have smaller communities than the first three listed above.  As new contenders fill various voids in the library space this will undoubtedly become a more crowded market.

More information can be found by visiting the various framework sites, or by visiting http://jsmag.com.

Michael Kimsal publishes resources for web developers, including JSMag for JavaScript professionals, and GroovyMag, for Groovy and Grails developers.

Many examples and source codes required javascript to build floating banner. In this example I only use CSS without javascript. There are two models frequently used, top banner and bottom banner. Be Careful if you use at bottom and itâ??s floating. User may feel itâ??s annoying but not much as pop up banner. Take a great look to your user and website before user it.

Whatâ??s your purpose to use floating banner at the bottom? If itâ??s asked to me then Iâ??ll say itâ??s hoped that users always see the banner whenever they scroll browser document although itâ??s position is at bottom. Your advertisers will have better opportunity to gain more profit from their banners.

How to build it? I wrote full code for this including required CSS and HTML.

<!– Here we start our Floating Banner Bottom –>
<style>
#floating_banner_bottom {
text-align: center;
width: 100%;
bottom: 0px;
margin-bottom: 0px;
height: 106px;
position: fixed;
z-index: 100;
right: 0;
_position:absolute;
_top:[removed]document.body.scrollTop+document.body.clientHeight-this.clientHeight);
}
html>body #floating_banner_bottom { margin-bottom: 0px; bottom: 0 }
 
#floating_banner_bottom div.close {
margin: 0 auto;
width: 728px;
height: 16px;
text-align: right;
}
</style>
 
<div id=”floating_banner_bottom”>
<!– Button to Close Banner –>
<div class=”close”>
<a rel=”nofollow” onclick=”javascript:pageTracker._trackPageview(‘/outgoing/article_exit_link’);” href=”#” onclick=”document.getElementById(‘floating_banner_bottom’).style.display=’none’;return false;”>
<img src=”close.png” border=”0″>
</a>
</div>
<!– Here we use google adsense 728×90 –>
<script type=”text/javascript”>
google_ad_client = “pub-XXXXXXXXXXXXXXXX”;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = “728Ã?90_as”;
google_ad_type = “text_image”;
google_alternate_ad_url = “http://yuniarko.com/”;
google_ad_channel = “yuniarko.com”;
google_color_border = “FFFFFF”;
google_color_bg = “FFFFFF”;
google_color_link = “0000FF”;
google_color_text = “000000″;
google_color_url = “005577″;
</script>
<script type=”text/javascript” src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
</div>
<!– End Here –>

I use banner size 728Ã?90 from google AdSense and 16Ã?16 close button. You can any banner and close button you have. The height for floating banner is 106 = 90 + 16. We must set width for close button div same as bannerâ??s width 728.

And thatâ??s all I can give. Please give me your feedback if thereâ??s some errors in it.

My name is Coni Yuniarko. I’m a freelance programmer working with Java, PHP, and HTML. My current niche is about web developing. You can check my blog at http://yuniarko.com

Chapter 1: Variables, Inputs & Outputs

Programming is nothing more than controlling in a more direct way what P already use a computer in a number of ways, you want your computer to do. You proband you control it to some extent by the programs you use and the way that you use them. Still, without programming, you are always at the mercy of the programs designed by others. In this chapter, you will look at how you can begin to influence the computer’s behavior. Specifically, you will:

• Examine how you can put code inside a HyperText Markup Language (HTML) page

• Use dialog boxes to interact with the user • Learn how computers store data in variables

• Learn how to get data from the user

• Perform basic operations on data

Adding Code to HTML

Web pages provide a rich background for programming. With the knowledge of HTML that you already have, you can generate pages that look pretty good. For example, you can control how text looks and add images. You might even have some experience with the finer-grained control of cascading style sheets. Still, plain HTML pages lack true interactivity. The only way that the user can really exert any control over the page is by clicking on links. This is interesting, but that fun takes the user only so far.

Creating the Hello, World! Application

It would be interesting to make the page a little more dynamic. Both of the major browsers, Netscape Navigator and Microsoft Internet Explorer, support JavaScript, a scripting language that is perfect for adding interactive features to a Web page. Take a look at the following snippet of code: 3 Chapter 1 Variables, Input, and Output

<html>

<script>

//hello world

//the classic first program

alert(“hello world”);

</script>

</html>

If you save this code as a Web page, then load that page into a browser, it generates the screen shown in Figure 1.2. This code snippet consists of normal (if very abbreviated) HTML, but it uses some features you might not have seen before. The <script></script> tag set specifies to the browser that any code between the tags is not written in HTML, but in a scripting language. Both the Netscape Navigator and Microsoft Internet Explorer browsers use JavaScript, their default language, unless you specify another language. (Technically, Microsoft Internet Explorer runs a variant called Jscript, but the code works the same as either JavaScript or Jscript.)

So much for now folks, stick around for more JavaScript programming tutorials.

For more on Javascript programming and online entertainment, visit my site:

Http://funaddict.yolasite.com

For more on writing effective articles visit:

http://effective-articles.blogspot.com

There are many JavaScript frameworks available today for programming rich client-side interactions in web applications. With many such different options, it is important to choose a framework that not only serves your current requirement, but also serves you in the long run. We drew up a visual comparison between Ext JS and four other popular JavaScript frameworks: Prototype, Dojo, JQuery and YUI. Our detailed comparison spanned 20 different attributes. In addition to feature-set and technical comparisons, we also looked at parameters such as community support, design principles and quality of documentation and samples to provide a sense of the framework’s durability.

Overall, Ext JS and JQuery came out strong with respect to their support of basic technical features. Both are upcoming frameworks that show commitment towards robustness of design and conceptual modeling that is needed for serious web applications. Ext JS has a rich library of widgets, both of them integrate with other JavaScript libraries in some manner, and both can model complex user interactions in their own way. Ext JS is emerging as an “industry-strength” framework and is being increasingly used in the enterprise. Ext JS also supports a robust client-side data model and support for component model and design patterns.

Your initial choice of JavaScript framework is an important one and the differences between these frameworks can be subtle. Being client-side technologies, these frameworks handle multiple priorities like usability, scripting ease, support for browsers, performance and many others, and making an informed choice about these technologies requires thorough analysis.

 

by Shivesh Vishwanathan

I recently set up a clicksor account, because I wanted to be able to compare google adsense revenue with a competitor.  This was my first time with clicksor.  I submitted the site through the standard review process, and I clearly indicate in the “get my javascript embed code” check list that I did not want any of their in-text features or pop-up features – just the banner. 

 

Unfortunately, as soon as I installed the banner code, my site was also peppered with intext-links.  I did a quick search, and noticed that I wasn’t the only one who came across the problem.  

 

Here’s another example of clicksor gone wrong.  I won’t be using Clicksor as long as their modus operandi is based on tricking the users and maliciously inserting javascript functionality that embeds advertising inlinks I didn’t approve.  It’s probably fraud, but in any case, I just won’t use it and will move on to another option.

 

Another related question is whether these types of inlinks are against google’s quality guidelines – ie, will you get a google penalty if your site has these types of advertisements?  My opinion is that it doesn’t matter what a lawyer will say about the quality guidelines.  What is important is what Matt Cutts says.  And Matt Cutts says that you have to think about what your users want – what provides the best experience for the users?  Whether google’s algorithm or manual penalizers will whack your site for it right away – or whether your readers will just avoid your site and you won’t get links –  doesn’t matter.  Your users want to clearly see and know which links you recommend; they don’t want to have automatic link insertions that confuse them. 

I recently set up a clicksor account, because I wanted to be able to compare google adsense revenue with a competitor.  This was my first time with clicksor.  I submitted the site through the standard review process, and I clearly indicate in the “get my javascript embed code” check list that I did not want any of their in-text features or pop-up features – just the banner. 

Unfortunately, as soon as I installed the banner code, my site was also peppered with intext-links.  I did a quick search, and noticed that I wasn’t the only one who came across the problem.  

Here’s another example of clicksor gone wrong.  I won’t be using Clicksor as long as their modus operandi is based on tricking the users and maliciously inserting javascript functionality that embeds advertising inlinks I didn’t approve.  It’s probably fraud, but in any case, I just won’t use it and will move on to another option.

Another related question is whether these types of inlinks are against google’s quality guidelines – ie, will you get a google penalty if your site has these types of advertisements?  My opinion is that it doesn’t matter what a lawyer will say about the quality guidelines.  What is important is what Matt Cutts says.  And Matt Cutts says that you have to think about what your users want – what provides the best experience for the users?  Whether google’s algorithm or manual penalizers will whack your site for it right away – or whether your readers will just avoid your site and you won’t get links –  doesn’t matter.  Your users want to clearly see and know which links you recommend; they don’t want to have automatic link insertions that confuse them. 

Palma SEO by Drupal SEO is your solution provider for website implementation. I specialize in drupal installation and search engine optimization consultation. Check out SEO Hawaii website for more useful tips.

When you surf the web, you may encounter a very common message displayed to you about a javascript error.  Receiving a javascript error message can be very frustrating, especially when you are simply chatting with friends, ordering a product or surfing the web.  This is a problem that can easily be fixed, without any particular knowledge on the userâ??s part.  A simple registry cleaner should do the trick.

Here is a little information that will help you understand why things like this occur.  When you first got your PC, everything on it is clean, and without congestion.  Over time, the things you do eventually cause your Windows registry to contain broken and corrupt files.  When you download programs or software, they often install over top of files in your registry that you no longer use, but that were never uninstalled.  Data may be misfiled, causing duplicate entries.  Of course, you don’t realize this is happening until you begin having javascript problems.

Another symptom that is common when your registry is corrupt is poor computer performance in general.  Many users notice that their PC becomes slow or sluggish.  It may seem to take much longer than normal for Windows to start up, or to open a link you are trying to visit.  If not repaired, a corrupt registry can lead to hardware failure.  A good product to solve the problem will scan your Windows registry for corrupt and missing files, then repair all errors so that your computer works efficiently once again.

The information contained in your registry is largely responsible for every operation your computer performs.  This is why it is important that you perform regular maintenance with a product designed specifically for that purpose.  All that you do when you are online gets collected, which will cause your PC to become congested and affect its performance.  Even if you know nothing about how a computer operates, all of these annoyances are easily corrected.

When you want your system to run quickly and perform as it once did, get the best registry cleaner to repair javascript errors, leaving you with nothing but a highly-optimized PC.

Optimize-Your-PC will help you, with its advanced registry cleaning technology, it will scan, diagnose and fix all javascript errors and erroneous Windows entries, leaving you with nothing but a highly-optimized PC.

It is best not to put any JavaScripts inside a web page. Placing JavaScripts inside a web page can cause clutter. Search engines normally cannot reach important content and information if you have a cluttered web site.

JavaScript is an object-oriented scripting language used to enable programmatic access to objects within different applications. It is normally implemented as an integrated component of the web browser, allowing the development of enhanced user interfaces and dynamic websites.

Despite the name (JavaScript), it is essentially unrelated to the Java programming language even though the two have numerous similarities. JavaScript is a trademark of Sun Microsystems. It was used under license for technology invented and implemented by Netscape Communications and current entities such as the Mozilla Foundation.

Search Engine Optimization professionals suggest to place all JavaScripts in an external file. It is best to use external JavaScripts for various reasons. According to Search Engine Optimization for Dummies: 3RD edition by Peter Kent, these reasons include:

They’re safer outside the HTML file – they are less likely to be damaged while making any changes to the HTML
JavaScripts are easier to reuse – simply store the script externally and change the external file to automatically change the script in any number of pages
They are easier to manage externally – place all of the scripts in one directory for better organization
The download time is slightly shorter – If you use the same script in multiple pages, the browser downloads the script once and caches it.
Doing so removes clutter from your pages!

About CODANK Charlotte Web Design

CODANK is a top Charlotte Web Design and Internet Marketing Company located in Charlotte, NC. The company is dedicated to providing a broad range of web design services. CODANK specializes in Search Engine Optimization (SEO), Graphic Design, Online Marketing, and Web Design and Development.

For more information, visit CODANK Charlotte Web Design and Internet Marketing Company at www.codank.com

About CODANK Charlotte Website Design and Markjeting Company CODANK is a top rated Web Design and Internet Marketing firm located in Charlotte, NC. We are dedicated to provide the highest quality, cost effective custom software development services, delivering a broad range of business consulting and outsourcing services. For more information, visit us at http://codank.com

Web page menu header or navigation bars are essential parts of website design. In the past most people use Javascript to create pull-down menus. It would take considerable amount of java scripting for web designer to get the right design and right options on the navigation menu, and incompatibility problems arise often between different web browsers and Javascript versions.

Because of the popularity of Flash, more and more websites are using flash menu to replace javascript menu systems. Flash menus provide better browser compatibility — as flash web menu appears and works the same in all browser and operating system conform to the Adobe Flash standard. Base on Adobe’s website information, over 98% of web users now have flash installed with their browser.

A main attracting factor of your website is the website’s appearance and design. Javascript language does not support high quality graphics or animations. In contrast, flash menu is often visually Rich, and comes with high quality graphics and animated effects, which make using a flash header and navigation menu bar much more attractive than a static Javascript menu. In additional, Javascript is disabled by many users for security reasons and popup blocking. For these users, Javascript menus will simply become invisible and leave a big blank area on your website — which gives your visitors a very poor impression about your website.

Another main advantage of flash menu is its easy maintenance. Most flash menu stores its settings in a single SWF file, changes to site navigation are very easy. Just upload the new file to your site and refresh are instant. If you use Javascript menu, as the javascript code is repeated to all pages, you would need to edit all pages.

To create a flash menu, you can do it in 2 ways. You can either program it yourself using Adobe Flash software plus actionScript — which require techniques such as timeline control, frame labels, use of button event handlers, and animation skills.

To create flash menu the easy way, you can consider to use a flash menu building software. Most flash menu builder software provide a wizard and easy steps to make flash menu, you can simply choose a ready made design from a collection of flash menu templates, and then fill your menu captions, links, and define sub-menus.

A flash menu creator makes it easy for beginners and starters to build a flash menu navigation bar in minutes with just few mouse clicks. Even highly skilled webmasters might find the flash menu software a great time saver for creating flash dropdown menus.

Godfrey Ko, website software and developer since 1996. Developed software including a flash menu builder, website builder, interactive map software and website video player.

You have gone looking for a solution to all those JavaScript error messages you keep getting and you canâ??t seem to make heads or tails of all the information available.  One website says one thing, the others say the problem is related to something else entirely.  Well here are a few simple things to look at when trying to resolve these issues.

First off, the JavaScript programming language is a special type of universal software and works with many different programs.  Though most of the time this program works with online webpages.

If you are having problems with JavaScript error messages only on a few webpages once in awhile, you should start with installing all the current updates on your web browser.  Many web browsers need to be updated periodically to keep up with changes.

To address the problem when you get JavaScript error messages while online and off try to identify changes in the computerâ??s registry.  If you have recently installed or uninstalled programs the process might have inadvertently affected the registry in an unintended manner.

Sometimes when installing and uninstalling software there can be data left behind or broken that the computer processor has trouble understanding.  In many cases the processor will try repeatedly to correct the issue which can lead to an undesired data loop.  These loops eat up processor resources and can harm your computer.

Most people do not realize that the harder a computerâ??s processor works the hotter it gets, but as many people have experienced, a hot processor is one with a short life.  It is much easier to correct many of the issues that lead to a burned out computer processor than it is to regularly purchase a new computer, especially when many of the problems that lead to it can be corrected.

To solve many of these issues all a computer user needs to do is always remember to keep all their programs up to date and regularly run all the programs designed to fix problems.  Those include all of the programs designed to protect, like virus and malware programs.  Users should also frequently use their computerâ??s defragmenting software as well as a good registry cleaning program.

More times than not software errors, including JavaScript error messages, are related to registry problems and outdated software issues.  If you have already updated all the programs that give you a JavaScript error message then your problem is most likely registry related.

With just a little research you should have no problem finding a reliable registry cleaning program that can optimize your PC and fix all your JavaScript error problems.

Optimize-Your-PC can help you, with its advanced registry cleaning technology; it will scan, diagnose and fix all erroneous JavaScript error registry entries, leaving you with nothing but a highly-optimized PC.

Here is a simple tutorial on how to use Javascript to validate a form’s name field. In this tutorial I’ll show how to display the error beside the name field rather than pop-up the error message using the alert function. The error will display stating there is no name in the name field (I use a username field; however, the code can easily apply to a name field) in the error region when the user clicks on the submit button. When the user enters a name in the name field and then resubmits the error is no longer displayed.

Here is the HTML form:

&lt;form name=&quot;register&quot; method=&quot;POST&quot; action=&quot;connect2.php&quot; onsubmit=&quot;return checkWholeForm(this)&quot;&gt;
&lt;fieldset&gt;
&lt;div id=&quot;usernameField&quot;&gt;&lt;label style=&quot;padding-left:20px;&quot; for=&quot;username&quot;&gt;username:&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;username&quot; id=&quot;username&quot; size=&quot;30&quot; maxlength=&quot;45&quot; /&gt;&lt;span id=&quot;errorMesUsername&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;label style=&quot;padding-left:20px;&quot; for=&quot;pass&quot;&gt;password:&lt;/label&gt;&lt;input type=&quot;password&quot; name=&quot;pass&quot; id=&quot;pass&quot; size=&quot;30&quot; maxlength=&quot;45&quot; /&gt;&lt;/div&gt;
&lt;label for=&quot;email&quot;&gt;email:&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; size=&quot;30&quot; maxlength=&quot;45&quot; /&gt;&lt;br /&gt;
&lt;/fieldset&gt;
&lt;input type=&quot;submit&quot; value=&quot;submit&quot; name=&quot;submit&quot; /&gt;
&lt;/form&gt;

Basically, when the user clicks on the submit button the browser is expecting some return value from the checkWholeForm() function. The word ‘this’ is referring to the form as it’s an object. In other words, ‘this object’ is the form. Notice There is a span section beside the username’s input field.

&lt;span id=&quot;errorMesUsername&quot;&gt;&lt;/span&gt;

There is nothing displayed to the username when the form is opened as this is where Javascript will return the error message if there is no name entered in the field.

VALIDATE THE FORM USING JAVASCRIPT FUNCTION

Here is the Javascript function for checkWholeForm():

function checkWholeForm(theForm) { with(theForm) { checkUsername(username.value); } return true; }

Notice the above uses a Javascript with() function. All this is saying is that all properties within the curly brackets {} will use the ‘theForm’ object. In other words, this ‘username’ is the property of ‘theForm’ object. The ‘username’ is the value of the ‘name’ attribute in the input tag as follows:

&lt;input type=&quot;text&quot; name=&quot;username&quot; id=&quot;username&quot; size=&quot;30&quot; maxlength=&quot;45&quot; /&gt;

If we chose not to use the with() function then we could write the checkWholeForm(theForm) as follows;

function checkWholeForm(theForm) {
checkUsername(theForm.username.value);
return true;
}

If we were to create additional validations such as for the password field and use the with() function then we could write the checkWholeForm(theForm) as follows:

function checkWholeForm(theForm) {
with(theForm) {
checkUsername(username.value);
checkPassword(pass.value);
}
return true;
}

The ‘pass.value’ is passing the value of the input of the password field to the checkPassword() function. The ‘pass’ is the value of the ‘name’ attribute of the ‘input’ tag. This function is incomplete as it will eventually be validating the password using PREG (Perl Regular Expressions).

function checkUsername (usernameVal) {
this.errorMes = document.getElementById(“errorMesUsername”);

var error = “”;
if (usernameVal == “”) {
error = “You didn’t enter a username.n”;
this.errorMes[removed] = error;
} else if (this.errorMes[removed] != “”) {
this.errorMes[removed] = “”;
} else {
return true;
}
}

DISPALY ERROR MESSAGE IF NO NAME IS ENTERED

The first line with ‘this.errorMes’ is simply creating a local variable. You could create a variable as ‘var errorMes’ instead. I program primarily in PHP so I’m used to using the term ‘this’ when referring to objects. We are getting the element by the id’s value. In other words, the span tag’s attribute ‘id’ has a value of ‘errorMesUsername’. The span tag as you will notice is immediately after the input tag of the user field. This is where the error will display if the user did not enter any value in the user field. The reference to this DOM will be used later in the conditional statements.

Then in the next line we make the variable ‘error’ equal to nothing in case there is a previous value attached to it. Then we check for some conditions. Since this function (i.e. checkUsername()) is checking to see if the user entered any text the first conditional statement is “if (usernameVal == “”)”. Don’t forget the double equal (i.e.’==’) signs for conditional statements. This is different than assigning a value to variable where you only need one equal (i.e.’=') sign. If it turns out that the user did not enter any text in the username field then we assign the value of variable ‘error’ which equals “You didn’t enter a username.n” to be placed within the span tag (i.e. innerHTML) where the attribute ‘id’ equals ‘errorMesUsername’.

DELETE ERROR MESSAGE IF NAME IS ENTERED

The second conditional “else if (this.errorMes.innerHMTL != “”)” is checking to see if there is any value within the span tag. In other words, if there is any error displayed. We need this conditional when the user then enters a name in the field after reading the error message and then resubmits the form. To further explain, if the condition ‘usernameVal == “”‘ returns false or, in other words, if the there is now some text that was entered by the user in the name field then go to the next conditional which is where we are at. Since there is not some entered text in the name field we need to check to see if there is an error displayed in the span tags and if there is then we need to delete it (i.e. not display it). We do this by assigning the value of the span tag to equal to nothing with this line ‘this.errorMes[removed] = “”‘.

As an extra precaution we could have written this ‘else if’ condition as ‘else if (this.errorMes[removed] != “” &amp;&amp; usernameVal != “”)’. The two ampersands are an extra condition that must be met. ‘usernameVal != “” means if the variable ‘usernameVal’ does not equal to nothing or more simply put if the variable ‘usernameVal’ equals to something (i.e. some text was entered in the name field). Double negative equals a positive.

Just as a note, we could have used the Javascript function onchange() instead of using this conditional statement. Onchange() function will check if the user starts typing any text in the name field. As soon as the user types any text then we can return another function value based on what the user starts typing.

The last ‘else’ conditional is simply a catchall in case the other conditions don’t pass for whatever reason.

So the entire Javascript code looks like:

function checkWholeForm(theForm) {

with(theForm) {
checkUsername(username.value);
}

return true;
}

function checkUsername (usernameVal) {
this.errorMes = document.getElementById(“errorMesUsername”);

var error = “”;
if (usernameVal == “”) {
error = “You didn’t enter a username.n”;
this.errorMes[removed] = error;
} else if (this.errorMes[removed] != “”) {
this.errorMes[removed] = “”;
} else {
return true;
}
}

This is a basic example of Javascript validating a name field. We’ll go into more validation checks for the form’s fields in upcoming tutorials.

Javascript Tutorial, tips, guides. Victor Kimura
Javascript Tutorial Javascript Validate Name Field