A lot of registered members, there is a function that detects the member account is available, and the click button can complete the test, the following is its implementation method span>
iframe> After filling the account, click the Detection button, use js checknick () to submit form receivers, but submitted the goal is iframe, so that it is not jumped, In lookover.php you can write a statement that reads the database or modify the data. span> is used to get the return information, such as the CHECKNICK () function, using Document. getElementByid ("msg"). InnerText = "I am detected, please wait ..."; to return information, and in lookover.php to return information, use parent.getElementByid ("msg"). Innertext = account number Available "to return. The principle is actually the same as asynchronous.