Jump to content

jono

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by jono

  1. instead of using
    document.forms[0].elements['NormalFrameWorkControl:center_middle:SearchBodyControl:btnSearch'].click();]

    give the button an id then use this

    document.getElementById('buttonID').click();

    Works great in Firefox but not in IE 6.0...Will IE need some special javascript code?or even better

    document.forms[0].submit();

    Not accurate enough...
  2. I want a button to be automatically clicked when I press Return in a textbox. Normally some other link will be clicked on Return but I want my search button to be clicked.I have a function that checks if the keyCode is 13 and then tries to click my button by doing this:["document.forms[0].elements['NormalFrameWorkControl:center_middle:SearchBodyControl:btnSearch'].click();]But why won't my button react??/jono

×
×
  • Create New...