469,588 Members | 2,741 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,588 developers. It's quick & easy.

Javascript validations not working in firefox

in my website javascript validations are not working in firefox, can any any one of u say why ? and if u know the solution tell me
Feb 2 '07 #1
2 1375
acoder
16,027 Expert Mod 8TB
Welcome to The Scripts.

I can't say unless I see the code. Please can you post the relevant code (in code tags please).
Feb 2 '07 #2
this is the code:


Expand|Select|Wrap|Line Numbers
  1. function clickIE4(){
  2. if (event.button==2){
  3. alert(message);
  4. return false;
  5. }
  6. }
  7.  
  8. function clickNS4(e){
  9. if (document.layers||document.getElementById&&!document.all){
  10. if (e.which==2||e.which==3){
  11. alert(message);
  12. return false;
  13. }
  14. }
  15. }
  16.  
  17. if (document.layers){
  18. document.captureEvents(Event.MOUSEDOWN);
  19. document.onmousedown=clickNS4;
  20. }
  21. else if (document.all&&!document.getElementById){
  22. document.onmousedown=clickIE4;
  23. }
  24.  
  25. document.oncontextmenu=new Function("alert(message);return false")
Feb 8 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by phal | last post: by
3 posts views Thread by useenmelately | last post: by
3 posts views Thread by Bill_W_Stephens | last post: by
8 posts views Thread by chrisdude911 | last post: by
13 posts views Thread by David Golightly | last post: by
16 posts views Thread by Eric | last post: by
84 posts views Thread by Patient Guy | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.