By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,643 Members | 1,080 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,643 IT Pros & Developers. It's quick & easy.

Javascript validations not working in firefox

P: 9
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
Share this Question
Share on Google+
2 Replies

acoder
Expert Mod 15k+
P: 16,027
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

P: 9
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.