Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Internet Explorer 8: How to make read only text input have no cursor
Home
Education
Internet Explorer 8: How to make read only text...
asked
Feb 24, 2022
in
Education
by
JackTerrance
I am trying to simulate the look and feel of a Firefox disabled text input: textarea and input text. The only browser compatibility I have to worry about is Internet Explorer 8. I do NOT have to worry about anything earlier (Intranet) Internet Explorer does not allow one to change the text color of a disabled test input. It does allow background color to be changed but gray text on a gray background color was beyond illegible. I have an input box and text area declared as follows:
I have the following styles applied through a CSS: input[readonly], textarea[readonly] { color:black !important; background-color: threedface !important; } Visually, this works excellently in both Firefox and IE. However, IE still allows a cursor into the text area or text box. What am I missing? ADDITION By cursor, I am referring to a keyboard cursor such as when you are typing a reply here. Maybe my problem is better stated as a user can still click on the text area and have a keyboard cursor show up. It appears that the blinking cursor disappears quickly though. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)
html
1
Answer
0
votes
answered
Feb 24, 2022
by
JackTerrance
try adding a cursor property to your css input[readonly], textarea[readonly] { color:black !important; cursor: default; background-color: threedface !important; }
http://www.w3schools.com/cssref/playit.asp?filename=playcss_cursor&preval=default
--- 12/01/27 Revisiting this solution, I found the following to work for me, hopefully its helpful to you as well:
Related questions
0
votes
Q: Internet Explorer 8: How to make read only text input have no cursor
I am trying to simulate the look and feel of a Firefox disabled text input: textarea and input text. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Feb 25, 2022
in
Education
by
JackTerrance
html
0
votes
Q: Keeping an open connection in Internet Explorer (7,8,9)
I am in a project where I need to connect to a client's server and retrieve data for some graphs ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Feb 19, 2022
in
Education
by
JackTerrance
javascriptjqueryajaxinternet-explorer
0
votes
Q: Which of the following tags are no longer valid in HTML5?
Which of the following tags are no longer valid in HTML5?...
asked
Apr 10, 2021
in
Education
by
JackTerrance
html
html5
0
votes
Q: Why text inside <select> / <option> list is not affected by CSS applied to parent <html> element?
Why text inside / list is not affected (color of "item1", "item2" is not changed) by CSS applied ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
May 1, 2022
in
Education
by
JackTerrance
html
0
votes
Q: Why text inside <select> / <option> list is not affected by CSS applied to parent <html> element?
Why text inside / list is not affected (color of "item1", "item2" is not changed) by CSS applied ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Apr 29, 2022
in
Education
by
JackTerrance
html
0
votes
Q: Why text inside <select> / <option> list is not affected by CSS applied to parent <html> element?
Why text inside / list is not affected (color of "item1", "item2" is not changed) by CSS applied ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Apr 26, 2022
in
Education
by
JackTerrance
html
0
votes
Q: Visible text Inaccessible to search bots?
I would like to add some text to my HTML that is not accessible or indexed by search bots. Is it ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Feb 24, 2022
in
Education
by
JackTerrance
html
0
votes
Q: Floating label in input field with supported all browsers, without js and without required attribute
I have created floating label in input field.In chrome view is working fine, but not properly viewed in ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Jun 2, 2022
in
Education
by
JackTerrance
html
0
votes
Q: Which of the following input control represents a date (year, month, day) encoded according to ISO 8601 in Web Form 2.0?
Which of the following input control represents a date (year, month, day) encoded according to ISO 8601 in Web Form 2.0?...
asked
Apr 10, 2021
in
Education
by
JackTerrance
html
html5
0
votes
Q: How to make unicode show in desktop view
I have several unicodes which show in mobile but not desktop. I'm assuming I can't force an @media ... : $ad_title $featureimg Contact Information . 📧 . 📞 📍....
asked
Apr 21, 2022
in
Education
by
JackTerrance
html
0
votes
Q: Recommended approach to using Angular Elements with Internet Explorer 11
Looking for guidance on how to use Angular Elements that will work across other browsers especially with Internet ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
May 6, 2022
in
Education
by
JackTerrance
angularinternet-explorer-11polyfills
0
votes
Q: ajax call checkbox internet explorer
I'm having this little problem with internet explorer and ajax. So first I used just php, and everything ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Jan 16, 2022
in
Education
by
JackTerrance
interview-question-answer
0
votes
Q: 5. Which of the following is not webbrowser ? *(a) Google ChromeO (b) Mozilla FirefoxO(c) Internet Explorer
5. Which of the following is not web browser ? * (a) Google Chrome O (b) Mozilla Firefox O (c) Internet Explorer O (d) Notepad Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: internet explorer has been replaced by _________web browser in window 10
internet explorer has been replaced by _________web browser in window 10 Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Where is the error icon shown in the Internet Explorer?
Where is the error icon shown in the Internet Explorer? (a) Taskbar (b) Status bar (c) Both ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Oct 21, 2021
in
Education
by
JackTerrance
network-theory-questions-and-answers
network-theory-questions-pdf
network-theory-question-bank
network-theory-gate-questions-and-answers-pdf
mcq-on-network-theory-pdf
gate-network-theory-questions-and-solutions
network-theory-mcq-test
...