Article ID: 318361 - Last Review: June 18, 2005 - Revision: 2.0 FP: How to Prevent Selection of Text in a Web Page by Using FrontPage 2000/98This article was previously published under Q318361 For a Microsoft FrontPage 2002 version of this article, see 317330
(http://support.microsoft.com/kb/317330/EN-US/
)
.
SUMMARY
This article describes how to prevent someone from selecting text on a Web page in a Web browser. You can accomplish this task by including JavaScript code in the BODY element of your Web page. When the mouse pointer is dragged across the text in your Web page, the text is not selected.
NOTE: The JavaScript example in this article also works when you open your page in the Netscape 6.0 Web browser. This procedure does not prevent someone from viewing the source code in the browser to copy the content. MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. NOTE: You may receive an error message if you copy the examples directly from this article and paste them into FrontPage. The angle brackets (< and >) may appear as escaped HTML code (< and >). To work around this behavior, paste the script into a blank Notepad document, and then copy it from Notepad before you paste it into FrontPage.
| Article Translations
|
Back to the top
