subhailc
05-24-2005, 07:41 PM
why don't these work?
function init() {var y = document.getElementsByTagName('input'); while(y.length) y.pop().onfocus=function() {this.select();};}
function last() {var y = document.getElementsByTagName('input'); return y.pop();}
swapping shift for pop is no good either. but y[0] will work, strangely enough.
function init() {var y = document.getElementsByTagName('input'); while(y.length) y.pop().onfocus=function() {this.select();};}
function last() {var y = document.getElementsByTagName('input'); return y.pop();}
swapping shift for pop is no good either. but y[0] will work, strangely enough.