Two Laptop Bag*
The moose likes HTML, CSS and JavaScript and the fly likes Problem with Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem with "onClick"" Watch "Problem with "onClick"" New topic

Problem with "onClick"

Matt Horan

Joined: Jan 10, 2001
Posts: 4
Basically I am writing code that allows a user to input a value from a list and the page will position itself at that point in the list of values.
I am using a function called "focusOn":

This code is being referenced by the following code:

In Netscape if a user enters a value in the text field and clicks the link, it goes to that code on the page. In IE, the page doesn't move.
Any thoughts? (I already tried onSubmit rather than onClick)
It is sorta covered in the JavaRanch Style Guide.
subject: Problem with "onClick"
Similar Threads
Method not defined in Firefox 3.0.7 working fine in Firefox 3.0.3
onclick as a replacement for onsubmit
How to refer a java variable in javascript code.
Enabling and disabling Check Boxes
Help needed with onChange()