萬盛學電腦網

 萬盛學電腦網 >> 腳本專題 >> javascript >> 只能輸入全角

只能輸入全角

 <html>

<head> <title>網頁特效|www.wangqi.com|---只能輸入全角</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body>   <input onkeyup="value=value.replace(/[^uFF00-uFFFF]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^uFF00-uFFFF]/g,''))">   </body> </html>  
copyright © 萬盛學電腦網 all rights reserved