[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1573
  • Last Modified:

set focus to imagebutton / linkbutton

Hi ,

I was using javascript to set the focus of buttons on my page. It works fine, until I try it with linkbuttons and image buttons.

both document.forms(0).ctrlName.focus; and getelementbyid(ctrlName).focus work, but just not with imagebuttons or linkbuttons.

I know in 2.0, there is now a default button setting in the form, but that won't help me here.

Any ideas? thanks
0
Gezna
Asked:
Gezna
1 Solution
 
pbocanegraCommented:
0
 
irps20001Commented:
Set the "CausesValidation" Property of ImageButton to TRUE. This will work as Default Button/ImageButton

HTH
Rana
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now