I would like to have a page that users cannot select the text and paste it in another document. I know this is ordinarily done using PDF but that isn't an option for me on this project. I have built a temp id card using html and I want the user to be able to print but not copy and paste. Can it be done???
Consider using a page without the sensitive text on it for a "display" page while using a <link> tag to designate the "print" version page which will be called by the user's browser when they go to print. Make doubly sure the users don't bring the "print" page to their browser window by adding a CSS style sheet to the print page like this:
This can still be bypassed by the savvy user but it's going to take more work and there is just no way to completely prevent the user from copying anything they want.
__________________
Check out the Forum Search. It's the short path to getting great results from this forum.
A javascript event handler known as onselectstart could be used on the body tag:
<body onselectstart="return false;">
Though, javascript can be disabled. Your best bet is images. PHP can generate images, and I'm sure ASP and PERL can too, but I'd imagine it's not as easy...
Try the PHP forums if you're interested in that method. Otherwise, there will be a way around it.
Generating Images using ASP can be difficult, using .NET it's a snap. Since he states he has ASP but can't do .NET it's probable that PHP is out of the question too.
__________________
Check out the Forum Search. It's the short path to getting great results from this forum.
Last edited by Roy Sinclair; 09-29-2004 at 10:13 PM..