onclick and onchange not working in IE6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aaaash
    New Member
    • May 2010
    • 10

    onclick and onchange not working in IE6

    hi
    I have write my code in javascript file.here onclick and change function are not working in IE but working in firefox..
    plz give solution for this as soon as possible..
    Thanks in advance..
    here is my code in js file
    .....
    Code:
    text += "<table width=100% align=left><tr>"
    
    text += "<td align=left><a href=Month- onClick='monthMove(-1);this.blur();history.go(0);event.returnValue=false; return false;'><img src=images/Left.png border=0></a>&nbsp;"
    
    text += "<select name=selMonth onChange='javascript:changeCal();history.go(0);'>"
    ......
    ......
    
    text+="</table>"
    document.write(text);
    ....
    Last edited by Dormilich; May 17 '10, 06:41 AM. Reason: Please use [code] tags when posting code
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Post the code for the functions called onclick and onchange.

    What's "Month-" - the href for the link?

    You should quote attributes in HTML code, e.g.
    Code:
    <select name="selMonth" ...>

    Comment

    • ifedi
      New Member
      • Jan 2008
      • 60

      #3
      My question is:
      What are you still doing writing for IE6?

      Comment

      Working...