Hey everyone,
I'm working on this web site where most of the pages are on my server, but some of the links on these pages brings the user to external pages - pages that aren't mine. I would like to have a message informing the user that the destination is no longer on my web site as they click on the link. I know I can do this with "onClick" for every link that are external, but I have so many pages and I'm sure there's another way, an easier way to do this. Isn't there a way to check the domain names in my links for every page instead? Some kind of a search when the page loads or unloads? If someone has an idea, that would be great!
Thank you guys!
PS - If something isn't clear, just ask. I'll try to be more precise.
I'm working on this web site where most of the pages are on my server, but some of the links on these pages brings the user to external pages - pages that aren't mine. I would like to have a message informing the user that the destination is no longer on my web site as they click on the link. I know I can do this with "onClick" for every link that are external, but I have so many pages and I'm sure there's another way, an easier way to do this. Isn't there a way to check the domain names in my links for every page instead? Some kind of a search when the page loads or unloads? If someone has an idea, that would be great!
Thank you guys!
PS - If something isn't clear, just ask. I'll try to be more precise.