<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2462.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Chris,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I'm not familiar with the 
document.links collection -- is it new, or an IE-only thing? -- but if you can't 
get this working, I recommend having a hidden form field that stores the current 
URL and making the link into a function call that changes document.location.href 
.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Do let us know if you figure it 
out off-list...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Peter</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=CNafziger@sauder.com href="mailto:CNafziger@sauder.com">Chris 
  Nafziger</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:'javascript@LaTech.edu'">'javascript@LaTech.edu'</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 12, 2001 3:55 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] Problem changing 
  link's href property...</DIV>
  <DIV><BR></DIV>I'm having a problem with the function below.&nbsp; The first 
  two lines do what<BR>they are supposed to do just fine.&nbsp; The third line 
  does manage to change the<BR>URL of the link, however it only works if I use 
  the ID of zero that you see.<BR>If I replace the the zero with the value 
  assigned to the link's name<BR>property, 'JumpTo', similar to the first two 
  function lines, the error<BR>'document.links.JumpTo' is null or not an object 
  comes up.&nbsp; Why can't I use<BR>the link's name property value for the 
  reference like I did with the images?<BR><BR><BR>// Function that swaps two 
  images and changes the link URL <BR>// when one of the swatch image's 
  onMouseover event fires.<BR><BR>function imageOn(i)<BR>&nbsp;&nbsp;&nbsp; { 
  <BR>&nbsp;&nbsp;&nbsp; document.images["Unit"].src = 
  UnitImages[i].src;<BR>&nbsp;&nbsp;&nbsp; document.images["UnitNumber"].src = 
  UnitNumberImages[i].src;<BR>&nbsp;&nbsp;&nbsp; document.links[0].href = 
  Page[i] <BR>&nbsp;&nbsp;&nbsp; }<BR><BR>&lt;a href="LinkToPage.asp" 
  name="JumpTo" 
  id="JumpTo"&gt;Link&lt;/a&gt;<BR><BR>_______________________________________________<BR>Javascript 
  mailing list<BR><A 
  href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A><BR><A 
  href="http://www.LaTech.edu/mailman/listinfo/javascript">http://www.LaTech.edu/mailman/listinfo/javascript</A><BR></BLOCKQUOTE></BODY></HTML>