Welcome guest! Login or Sign up!
Set my location
Home Ask Browse Photos Groups Advisors Widgets
Home » Web Host Reviews » auto tab without destination

Auto tab without destination

Posted by gupvis 5 months ago
Send me Private Mail | Report Abuse

hi
i need to have auto tab functionality in my page. dont know abt the destination as page is generation dynamicaly.i m trying with tab index property

This function provide auto tab functionality in the field
function AutoTab(field)
{

var maxlen = document.getElementById(field).maxLength;
var currlen = document.getElementById(field).value.length;
if( currlen == maxlen && window.event.keyCode != "8")
{
//document.getElementById(field).value = document.getElementById(field).value + String.fromCharCode(window.event.keyCode);
window.event.keyCode = "9";
}
}

thsi funtion check for max lentgh of control and automatically switch focus to next.
but problem i m facing with onkeypress event. not able to fire window.event.keyCode = "9"; for keypress...
please suggest

thanxs




Post an Answer:

Your Answer: HTML is not allowed.


Rss_feed    Myaol_cta1    Addtomyyahoo4    Add