PDA

View Full Version : Disable Drop Down Menu



Kronik_webmaster
09-02-2004, 02:52 AM
I am interested in writing a code to disable the drop down menu on a website that enables the page to be edited in MS Word and/or FrontPage. I have the codes for disabling right clicks, highlights, select all, and copying, but I don't have that one to disable the edit mode from the File tab.

Can anyone help me with that please?

Kronik Webmaster

ddadmin
09-02-2004, 04:03 AM
Well, you can disable form elements in general, such as a select menu or textarea by using the "disable" attribute. For more info, see: http://javascriptkit.com/javatutors/deform.shtml

Kronik_webmaster
09-02-2004, 04:23 PM
I'm afraid this wasn't much help. I know very little about java script. I create my pages using mainly html, I don't own any webpage maker programs, so I don't know how to re-write it so that the drop down menu isn't functional. The two I want to disable is when a viewer visits my pages, selects FILE, then EDIT USING MICROSOFT WORD FOR WINDOWS or EDIT USING FRONTPAGE. Can you possibly help by writing the codes and allowing me to copy and paste to my webpages? I have a lot of copyrighted material on there that I don't want people taking and I have all the codes for protection but those. I'd appreciate the help. Thank you!

cr3ative
09-02-2004, 04:42 PM
For anyone who really wants to take information off your page, with the right tools there is no way to stop them; at one point or another, the data comes from your website onto the clients computer, images, everything. It's physically impossible to stop a professional from viewing/taking publically accessible information, but preventing right-click should be sufficent to stop newbies.

Otherwise, you could create a custom menu on top of the page using one of this website's script resources and launch the website in a popup, although this can be seen as bad web design.

Generally, when a website restricts right-click or highlighting, it becomes extremely irritating for a user, if they want to just copy a piece of useful text.
You could consider just putting a Copyright notice there instead to cover yourself?

Short answer: Its impossible.

(btw, no-right-click scripts are easily defeated using Firefox and the "Allow Right Click" extension. Just to let you know, in case you want a different way to protect images etc.)

Hope this helps.
cr3ative