Although HTML was first designed and used by scientists, it has yet to support mathematical and scientific notation with any degree of complexity. HTML does give you two tags to help write simple equations. Together with the codes for special characters, the <sub> (subscript) and <sup> (superscript) tags go a long way toward creating equations, as shown below
How to Validate E-mail Addresses in javascript (javascript email validating)
Contributed by Joe
Friday, 21 July 2006
How to Validate E-mail Addresses in javascript (javascript email validating)
How to conform to a format of a valid email address, you should think about the following logic:
Syntax Check-Validates the address for syntax, whether it has all of the mandatory characters present (e.g. @) and any illegal characters present (i.e. ~). It will also check for multiple occurrences of required characters (i.e. @@).
DNS/MX Record Check-Validates the domain name with DNS server to ensure that the email domain is a valid registered domain.
Mail Server Check-Validates an email address (e.g.
) by mail server (e.g. mail.devx.biz) to ensure that the mail server indeed has the email address. This method has very good performance. (Attention: a few mail servers don't support this method(e.g. yahoo))
But to java script,we only can do Syntax Check-Validates,see ollowing logic:
Check if the e-mail address is empty; if it is, the field is not valid.
Check for illegal characters, and if they occur, the field is not valid.
Check if the @ symbol is missing; if it is, the field is not valid.
Check for the occurrence of a dot; if there is none, the field isn’t valid.
Using JavaScript you can detect the type of browser the user is running. This is very useful if you want to implement features in your applications that require different code in different browsers.
The key to determining the browser the user is using is the navigator object. The navigator object provides several properties you can use to tell you the type of browser being used:
Sometimes you have to know whether or not Java is enabled JavaScript provides a simple mechanism for determining this: the navigator.javaEnabled method. This method returns true if Java is enabled in the browser and false otherwise.
"VMware has slammed Microsoft's tie-up with open source virtualisation developer XenSource, announced earlier this week, calling it a 'one-way street,' and accusing XenSource of betraying its open source roots.
"The agreement between the two companies will allow a para-virtualised Windows to inter-operate with XenSource's Xen, and significantly add to Xen's appeal by making Windows Server virtualisation able to run open-source Xen-based guest operating systems..."