"Adrienne" wrote:
>
> What you need to do is:
> <A href="info.asp?GradeID=<%=rsSublisting("Grade ID")%>"
> onclick="window.open('nameofwindow','info.asp?Grad eID=<%=rsSublisting
> ("Grade ID")%>',width=100,height=100); return false" title="Open <%
> =rsSublisting("Grade ID")%> in a new window" target="_blank"><%
> =rsSubListing("Grades")%></A>
Everybody keeps mixing up the order of the parameters in window.open():
http://msdn.microsoft.com/workshop/a...ods/open_0.asp
Here's a better idea -- instead of "_blank", use TARGET="nameofwindow" and
omit the [return false]. And use a more descriptive window name, for crying
out loud. Your link should look something like this:
<A HREF="info.asp?GradeID=<%=rsSublisting.Fields("Gra de ID").Value%>"
ONCLICK="window.open('','gradeDetails','height=100 ,width=100')"
TITLE="Open <%=rsSublisting.Fields("Grade ID").Value%> in a new
window"
TARGET="gradeDetails"
>
If scripting is defective or absent, this will open in a default-sized
window named "gradeDetails". If scripting is functional, the properly sized
(and named) window will be created with the click event, and will
immediately be used as the target of the anchor.
Tested successfully in the following browsers:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.4) Gecko/20030624
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2) Opera 7.11 [en]
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.