I need to add a javascript notice of an external link message when the link is outside of a .org web address. Is there a way to inject the onclick event for this if the link does not end in .org when they links are show in a grid.
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestMasterPageASPTable.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script type="text/javascript">
function externalLink() {
// when using, be sure to have the onclick "return" the outcome to keep from going to the site without consent from the user.
var r = confirm("My Message here");
if (r == true) {
return true;
}
e ...
Go to the complete details ...