Here’s my situation:
I have a page set up for personal use that has three frames. In one of the frames is a list of links that are generated by a content management system. Unfortunately, I don’t have control over how the links are formatted, so I can’t tell it to automatically include any kind of onClick in the actual links.
The target for the links is another frame. I have a test link set up with an onClick to write the URL of the link and the text of the link to a textarea in another frame. It works correctly (in everything but IE, but maybe we can address that later).
I’m not very well-versed with JavaScript, so you may need to hold my hand through this. I’d like to set something up so that every link on the page, or at least the links in certain divs on the page writes to that textarea in the other frame. Can you help me with this?
This is the test link, including the onClick…
[code]
<a href=”page.html” onclick=”parent.topframe.document.getElementById(‘thebox’).value=href+’r’+text”>This is the test link</a>
I’ve posted about this elsewhere, and I haven’t been able to get a good answer about it. Thanks if you can help, I really appreciate it!