Page Fragment help please

any one please help how can i set focus on a button found in page fragment (P1) when editing a textfield found in page fragment (P2)if it is by javascript can anyone help me by example please 10nx for help
[240 byte] By [HEN] at [2007-11-26 6:35:41]
# 1

Hi

The following line of javascript code will set the focus on the button:

document.getElementById('form1:button1').focus();

This above line of code can be entered for any of the javascript events associated with the textField which include onFocus, onBlur, OnKeyPress depending on your use case and requirement.

Hope this helps

Cheers

Girish

mayagiri at 2007-7-6 14:39:18 > top of Java-index,Development Tools,Java Tools...