<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [Javascript] Problem changing link's href property...</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Try document.JumpTo.href</FONT>
</P>

<P><FONT SIZE=2>Bob Filipiak (Contractor)</FONT>
<BR><FONT SIZE=2>MCP </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Chris Nafziger [<A HREF="mailto:CNafziger@sauder.com">mailto:CNafziger@sauder.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Friday, July 13, 2001 9:41 AM</FONT>
<BR><FONT SIZE=2>To: 'javascript@LaTech.edu'</FONT>
<BR><FONT SIZE=2>Subject: RE: [Javascript] Problem changing link's href property...</FONT>
</P>
<BR>

<P><FONT SIZE=2>It didn't help.</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Anthony E. [<A HREF="mailto:apwebdesign@yahoo.com">mailto:apwebdesign@yahoo.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, July 12, 2001 7:38 PM</FONT>
<BR><FONT SIZE=2>To: javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2>Subject: Re: [Javascript] Problem changing link's href property...</FONT>
</P>
<BR>

<P><FONT SIZE=2>try </FONT>
</P>

<P><FONT SIZE=2>document.link.jumpTo.href = '/newpath/file.html';</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>--- Chris Nafziger &lt;CNafziger@sauder.com&gt; wrote:</FONT>
<BR><FONT SIZE=2>&gt; I'm having a problem with the function below.&nbsp; The</FONT>
<BR><FONT SIZE=2>&gt; first two lines do what</FONT>
<BR><FONT SIZE=2>&gt; they are supposed to do just fine.&nbsp; The third line</FONT>
<BR><FONT SIZE=2>&gt; does manage to change the</FONT>
<BR><FONT SIZE=2>&gt; URL of the link, however it only works if I use the</FONT>
<BR><FONT SIZE=2>&gt; ID of zero that you see.</FONT>
<BR><FONT SIZE=2>&gt; If I replace the the zero with the value assigned to</FONT>
<BR><FONT SIZE=2>&gt; the link's name</FONT>
<BR><FONT SIZE=2>&gt; property, 'JumpTo', similar to the first two</FONT>
<BR><FONT SIZE=2>&gt; function lines, the error</FONT>
<BR><FONT SIZE=2>&gt; 'document.links.JumpTo' is null or not an object</FONT>
<BR><FONT SIZE=2>&gt; comes up.&nbsp; Why can't I use</FONT>
<BR><FONT SIZE=2>&gt; the link's name property value for the reference</FONT>
<BR><FONT SIZE=2>&gt; like I did with the images?</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; // Function that swaps two images and changes the</FONT>
<BR><FONT SIZE=2>&gt; link URL </FONT>
<BR><FONT SIZE=2>&gt; // when one of the swatch image's onMouseover event</FONT>
<BR><FONT SIZE=2>&gt; fires.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; function imageOn(i)</FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; { </FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; document.images[&quot;Unit&quot;].src = UnitImages[i].src;</FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; document.images[&quot;UnitNumber&quot;].src =</FONT>
<BR><FONT SIZE=2>&gt; UnitNumberImages[i].src;</FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; document.links[0].href = Page[i] </FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; &lt;a href=&quot;LinkToPage.asp&quot; name=&quot;JumpTo&quot;</FONT>
<BR><FONT SIZE=2>&gt; id=&quot;JumpTo&quot;&gt;Link&lt;/a&gt;</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; _______________________________________________</FONT>
<BR><FONT SIZE=2>&gt; Javascript mailing list</FONT>
<BR><FONT SIZE=2>&gt; Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://www.LaTech.edu/mailman/listinfo/javascript" TARGET="_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P>
<BR>

<P><FONT SIZE=2>__________________________________________________</FONT>
<BR><FONT SIZE=2>Do You Yahoo!?</FONT>
<BR><FONT SIZE=2>Get personalized email addresses from Yahoo! Mail</FONT>
<BR><FONT SIZE=2><A HREF="http://personal.mail.yahoo.com/" TARGET="_blank">http://personal.mail.yahoo.com/</A></FONT>
</P>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Javascript mailing list</FONT>
<BR><FONT SIZE=2>Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2><A HREF="http://www.LaTech.edu/mailman/listinfo/javascript" TARGET="_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Javascript mailing list</FONT>
<BR><FONT SIZE=2>Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2><A HREF="http://www.LaTech.edu/mailman/listinfo/javascript" TARGET="_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P>

</BODY>
</HTML>