From: Michael P. <mp...@po...> - 2001-02-25 13:16:15
|
I've combined the different methods of stopping IE from displaying context menus and selecting text into the following lines of code. They should be placed just before the "return evt.browserReturn;" line. if (is.ie5) { if (evt.type=='mouseup' && evt.button==3) dyndoc.doc.oncontextmenu=(evt.browserReturn) ? null : function() {return false}; else if (evt.type=='mousedown') dyndoc.doc.body.onselectstart=(evt.browserReturn) ? null : function() {return false}; }; This means that there is now no need to repeat the code in all the different widgets. Just cancel the browser event and the above code will do the rest. -- Michael Pemberton mp...@ph... ICQ: 12107010 |