making text non-selectable

P

Paul

Hello,
I am trying to make a menu for a html page and I am using DIV tags for
buttons. I don't like the idea of being able to select the text, is
there a way I can change this behaviour to make the text
non-selectable?

Advice for any browser appreciated.
TIA
Paul.
 
D

DU

Paul said:
Hello,
I am trying to make a menu for a html page and I am using DIV tags for
buttons. I don't like the idea of being able to select the text, is
there a way I can change this behaviour to make the text
non-selectable?

Advice for any browser appreciated.
TIA
Paul.


DOM 2 Events method
evtObj.preventDefault();
will avoid selecting the text when clicking on those <div>s for W3C DOM
2 Events compliant browsers (Mozilla 1.x, Opera 7.x, Safari 1.x, etc) while
event.returnValue = false;
will avoid selecting the text when clicking on those <div>s in MSIE 5+
browsers.

DU
 
T

Thomas 'PointedEars' Lahn

Paul said:
I am trying to make a menu for a html page and I am using DIV tags for
buttons. I don't like the idea of being able to select the text, is
there a way I can change this behaviour to make the text
non-selectable?

Nothing standards compliant and thus nothing cross-browser. Atigs.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top