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;"
onMouseup="this.style.cursor='default'">
<body onMouseDown="this.style.cursor='default'"
onSelectEnd="this.cursor='not-allowed'; return false;">
<body onSelectStart="this.style.cursor='not-allowed'; return false;"
onMouseup="this.style.cursor='default'">
<body onMouseup="this.style.cursor='not-allowed'; return false;"
onSelectStart="this.style.cursor='default'">


Please login to submit your answer.