Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Capturing which link/button is clicked
- From: javascript@xxxxxxxxxx (javascript@xxxxxxxxxx)
- Subject: [Javascript] Capturing which link/button is clicked
- Date: Mon, 26 Nov 2001 12:42:41 -0600
For reasons I don't pretend to ignore, a colleague has set up a form so that no matter which link is clicked on, an onUnload script changes the location. For example: <a href="goToThisPage.html">Go here</a> onUnload="window.location.href='goToThisPageInstead.html'" (The URL in onUnload isn't actually an HTML page, but a Domino agent that runs onUnload. Just using .html above for clarity.) Anyway, I now need to find a way to capture the URL on the link that was actually clicked. Compounding this problem is that not all clickable things are links; some are buttons that run other agents, or javascript functions. So, is there any consistent way to capture the action (onClick or a href) of whatever button or link a user has clicked? I apologize if this isn't clear; I can't quite understand what he's trying to do, but I'm apparently expected to make it work. : ( Thanks, Esther
- Prev by Date: [Javascript] detecting scrollbar
- Next by Date: [Javascript] Capturing which link/button is clicked
- Previous by thread: [Javascript] detecting scrollbar
- Next by thread: [Javascript] Capturing which link/button is clicked
- Index(es):