|
I'd like it to prompt the user (ok/cancel) when clicked, with the messagebox saying "You are leaving example.com. We are not responsible for the content of external sites:\n---\n(the href="")\n---\nPlease make sure this link does not look like phishing,etc" All external links are class="outbound" and can be modified with onclick/etc. Is there an easy way to do this?
|
# ¿ Oct 10, 2009 21:03 |
|
|
# ¿ May 3, 2024 21:03 |
|
Is there a simple way to ask "Are you sure if you want to leave (domain)" on any links clicked that don't match a whitelist of domains (maybe using onunload?) Googled, couldn't really find anything lightweight
|
# ¿ Dec 3, 2009 04:19 |
|
Scrap the whitelist I guess.. PHP spits out different URL formats right now depending on where the domain is (/external_leaving?gotourl= final destination) Would it be easier to just make a function asking to click ok/cancel when a link is onclick=""'d?
|
# ¿ Dec 3, 2009 04:54 |
|
I'm trying this and it's not confirming or asking anything:code:
(sorry, I'm a total newbie to JS)
|
# ¿ Dec 3, 2009 19:13 |