awx
04-13-2007, 01:20 AM
I'm trying to remove the last IE specific code from my site and get everything up to standard.
Here is a brief summary of my existing code (css classes removed, etc):
<TD onClick="this.children.tags('A')[0].click();">
<A id="TimelineLink" href="timeline.html">Timeline</A>
</TD>
In IE6, clicking on the cell/td will cause the browser to navigate to the link in the A tag. I want to accomplish the same thing but without actually specifying the URL in the TD element. This is because my site management tool will not manage URLs in JS code.
I've tried changing the onclick code to variations of this:
onClick="this.getElementsById('TimelineLink')[0].click();"
both with and without the [0] but nothing is working in FireFox. :(
What am I doing wrong?
Here is a brief summary of my existing code (css classes removed, etc):
<TD onClick="this.children.tags('A')[0].click();">
<A id="TimelineLink" href="timeline.html">Timeline</A>
</TD>
In IE6, clicking on the cell/td will cause the browser to navigate to the link in the A tag. I want to accomplish the same thing but without actually specifying the URL in the TD element. This is because my site management tool will not manage URLs in JS code.
I've tried changing the onclick code to variations of this:
onClick="this.getElementsById('TimelineLink')[0].click();"
both with and without the [0] but nothing is working in FireFox. :(
What am I doing wrong?