views:

323

answers:

2

I used jquery to attach a double click event handler to a table and display a modal popup when a cell is double clicked.

This works fine in Firefox however in IE8 double clicking the cell causes the text in the cell to be highlighted then displays the "Search Accelerator" button over top of everything.

Is there anyway to prevent IE from highlighting the text in a cell when its double clicked ?

A: 

Maybe adding this on the TABLE element:

unselectable="on"

Though I don't really know when to add it. I'd have to try but I have no IE8 installed.

Ionuț G. Stan
+2  A: 

Some approaches to prevent text selection in IE:

Joeri Sebrechts