Print Page | Close Window

Can’t focus after got anchor

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=10948
Printed Date: 28 March 2026 at 6:28pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Can’t focus after got anchor
Posted By: ngaisteve1
Subject: Can’t focus after got anchor
Date Posted: 21 June 2004 at 11:10pm
Initially, when I click the Edit button, there cursor will highlight the textbox because of this onload javascript

<body onload="document.myform.qty_delivered_fr.focus();document.my form.qty_delivered_fr.select()">

but, after I added an anchor, it doesn't work. The highlight can be seen but the focus is not there. I need to move my mouse and move my cursor in my textbox.

<td><A class=content HREF='do_m_dod_m_form.asp?passDOID=<%=strDOID%>&pa ssDODID=<%=strDODID%>&passEdit=Y&passDKID=< %=strDKID%>#<%=strDKID%>'>Edit</a></td& gt;

Actually, my page got an edit button and when I click that edit button, it comes back to the same page for me to change the value.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net