stefanb
10-26-2003, 06:00 PM
Hi!
I have a webpage where I have "inactivated" selecting text from the page using:
document.onselectstart = function() {return false}
This works... but it works too good in my case...
I have a couple of input fields (textboxes and textareas) on the page and I want the user to be able to select text within those areas but nowhere else on the page.
Anybody have any ideas of how to fix this?
<edit>
The script will only have to work in IE5+
</edit>
I have a webpage where I have "inactivated" selecting text from the page using:
document.onselectstart = function() {return false}
This works... but it works too good in my case...
I have a couple of input fields (textboxes and textareas) on the page and I want the user to be able to select text within those areas but nowhere else on the page.
Anybody have any ideas of how to fix this?
<edit>
The script will only have to work in IE5+
</edit>