I can't write to the inputs
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: juakobazan27, Unassigned)
References
Details
Attachments
(1 file)
1.66 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox for Android
Steps to reproduce:
Dear I found a problem with a javascript code in the last update, which does not allow me to write in the inputs of my website, I want to clarify that in previous versions it worked.
Please excuse me for my bad English, I'm from Argentina, sorry.
Actual results:
I pass you the javascript code, although it is a function so that the selection is not allowed, I understand that it should be verified since in other browsers such as edge and chrome it works.
Please excuse me for my bad English, I'm from Argentina, sorry.
Expected results:
In firefox it works but it does not allow you to write in the inputs.
I tried firefox for android and the same thing happens as on the pc.
Please excuse me for my bad English, I'm from Argentina, sorry.
![]() |
||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
It seems window.sidebar
doesn't exist in other browsers, and JS is behaving differently than in other browsers. You should remove the if (window.sidebar) {
condition and everything that's inside, so:
<script type="text/javascript">
function disableselect(e) {
return false
}
function reEnable() {
return true
}
document.onselectstart = new Function("return false")
</script>
Great thank you very much for your time I did not know about this, thank you
Description
•