#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    11
    Rep Power
    0
    I want to make it call a javascript function when pressing ENTER in an inout field in a form.

    How is that done in netscape?

    <form name='autocomplett' action='javascript:hoppa();'><input type='text' name='boxen' onkeyup='autocompl()' size='14'></form>

    ..worx fine in IE, but doesn't seem to work in NS..
    I want it to call the function hoppa() when pressing enter in that field....
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    11
    Rep Power
    0
    First, a form tag requires a "method" attribute. While IE lets you get away without it, NS doesn't seem to. I put in METHOD=POST and it called the function just fine.

    See: INPUT tag without FORM tag in NS thread further down the list for more detailed information. I had a similar question the other day.

    tbarrie

IMN logo majestic logo threadwatch logo seochat tools logo