Question:

Javascript works in IE but not Firefox?

by  |  earlier

0 LIKES UnLike

I have a piece of Javascript I use on my website to protect the copy write on my photos:

<script language="JavaScript"><!--

function click(){if (event.button==2){alert('Text')}}documen... -->

</script>

but it does not work in Firefox.

Any ideas on how to make this work in both Browsers?

 Tags:

   Report

3 ANSWERS


  1. Don&#039;t bother!

    IF your images are visible on screen, they can be copied by a hundred different means.

    Not even great artists bother protecting their images.

    You could (if it is really necessary), put a watermark on your images (but it really shows a bad taste in self-estime).


  2. Firefox not like javascript.

  3. Maybe you have scripting disabled in firefox

    Firefox is strict with javascript looking at what you have posted it&#039;s ok but firefox may take issue.

    Go to addons in firefox download the firebug addon it&#039;s the best javascript debugger out there you should be able to pinpoint the problem faster.

    Your pictures can still be downloaded by the way disabling right click is pointless

    Another fact the javascript engine within firefox is garbage and very slow

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.