UpTest > Web Development Internet Programming > DHTML Test

Test: DHTML Test

Question 1: Prev Next
You want to disable the selection of text on the webpage. While trying to select some text, the user should see 'not-allowed' cursor. Which of the following helps you implement this by using JavaScript and IE 5+ browser?
<body onSelectEnd="this.style.cursor='not-allowed'; return true;"
<body onMouseDown="this.style.cursor='default'"
onSelectEnd="this.cursor='not-allowed'; return false;">
<body onSelectStart="this.style.cursor='not-allowed'; return false;"
<body onMouseup="this.style.cursor='not-allowed'; return false;"

Please login to submit your answer.