6
javascript: Вимкнути вибір тексту
Я використовую javascript, щоб вимкнути виділення тексту на моїй веб-сторінці. Код: <script type="text/JavaScript"> function disableselect(e) { return false } function reEnable() { return true } document.onselectstart = new Function ("return false") if (window.sidebar) { document.onmousedown = disableselect document.onclick = reEnable } </script> Подібний сценарій можна знайти тут На моєму localhost: …
84
javascript