Hello there,

I need help in javascript.

I am looking for a scripts for disable view source in browser and disable right click option in broswe. I want script that need to work both in ie and firefox.

Please anyone help me to get the script.

Thanks in advance.

    There is an entire forum dedicated to javascript and this is not it.

      As has been mentioned twice already, this is definitely the wrong forum to ask this question.

      To contribute, however, I don't know that you can "disable view source." Even if you could, it would take anyone knowledgeable about computers all of 5 seconds (or less) to retrieve the source and bypass any/all Javascript blocks you implement.

      Now, as to disabling right-clicking, you can certainly do that. Though, instead of asking us, have you tried Google'ing this question?

        As far as disabling right click for graphics, it's just like what bradgrafelman said about view source - it would take a knowledgeable computer person about 5 seconds to bypass that. Once you put your source or your graphics on a web page, it's impossible to prevent someone from copying them.

          As with most browsers, you can even disable all Javascript entirely, rendering any code you do find useless.

          If you're worried about someone stealing your images, use watermarks.

          If you're worried about someone stealing your HTML... well, too bad; not much you can do about that.

            Oh no!!! You mean they could actually steal my HTML from view source? Oh my that would be bad! Just to think of all the work I put into it. Just joking, JScript or JavaScript has its place but as already stated it is easily turned off and rendered useless, PHP is not but it also has limitations. Maybe the guy actually posted in the ClientSide Technologies like my earlier reply I suppose that probably the Forum might do better with a name change like General PHP Help instead of General Help, which really could fall into the category of JavaScript.

              Houdini wrote:

              I suppose that probably the Forum might do better with a name change like General PHP Help instead of General Help, which really could fall into the category of JavaScript.

              Nah, I think it's fine the way i tis, considering it's under the subcategory of "PHP Help" and has a description of "Forum for General Help questions pertaining to PHP". People just need to pay attention to where they're posting things 😉

              And I'm not trying to start a flame war with you, phpbaby, or even single you out; there's plenty of other users that started posts in an improper forum.

                Write a Reply...