Windows 10 64bit で Firefox を利用しています。 ボタンをマウスで押下した時に、テキスト入力欄のフォーカス位置を失わないようにできなくなりました。
IE、Chrome、Opera 最新版、及び、以前(いつ頃かは失念)のFirefox では出来ていました。 どのように対応したらよいでしょうか?
以下サンプル
<html> <head> <style> input[type="button"] { -moz-user-select: none; -webkit-user-select:none; -ms-user-select: none; user-select: none; } input:focus{background-color:#CCF;} </style> <script> function hoge(){return false;} </script> </head> <body> <input type="text" value="hoge"><br> <input type="button" value="TEST" unselectable="on" onmousedown="hoge()"><br> </body> </html>
Windows 10 64bit で Firefox を利用しています。 ボタンをマウスで押下した時に、テキスト入力欄のフォーカス位置を失わないようにできなくなりました。
IE、Chrome、Opera 最新版、及び、以前(いつ頃かは失念)のFirefox では出来ていました。 どのように対応したらよいでしょうか?
以下サンプル
<html> <head> <style> input[type="button"] { -moz-user-select: none; -webkit-user-select:none; -ms-user-select: none; user-select: none; } input:focus{background-color:#CCF;} </style> <script> function hoge(){return false;} </script> </head> <body> <input type="text" value="hoge"><br> <input type="button" value="TEST" unselectable="on" onmousedown="hoge()"><br> </body> </html>
|