The following works in IE 8 and 9 but does not work in Chrome. See the error in bold.


function runSearch() {

var tmptarget = (document.forms(0).target);

Error: Uncaught TypeError:...