javascript Get Credit Card Type By Number (regex validation example)

function GetCreditCardTypeByNumber(ccnumber) { if ((/^(34|37)/img).test(cc) && cc.length == 15) { return 'AMEX'; //AMEX begins with 34

Examples of refresh/reload current page

A SEO friendly refresh/reload solution

javascript window maximization

javascript autocomplete feature of input

javascript get user selected text

javascript to check opened window is closed or not

javascript get millisecond or microsecond

javascript move to next input when ENTER key is pressed

javascript turn off ime(english letters only)

javascript view webpages' HTML source

javascript forbid to use right click/save/select/paste

javascript tips 2

javascript tips 02

Display in one row, Hide element's focus, Wrap line base on width, Auto refresh webpages, Email link with body and subject filled

javascript change css style dynamically

javascript exchange row/col/tr/td of table