the self.location.href='#add' goes to a html anchor on the page, and the focus is supposed to set the cursor inside the first textbox when the statement is run.Code:<script language="javascript"> <!-- self.location.href='#add'; document.addform.txtTitle.focus(); //--> </script>
if i run it as is, it will go to the anchor like its supposed to, but won't put the cursor in the textbox. if i comment out the first statement, it will put the focus on the textbox.
any idea whats going on here?




Bookmarks