PageSourceSearch

https://www.ncl-india.org/js/externallinks.js

js ncl-india.org collected 2026-09-24 18:21:50 UTC 1,227 bytes, 36 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2    document.addEventListener("click", function (event) {
3        const target = event.target.closest("a.external-site-confirmation");
4        if (target) {
5            const confirmation = confirmExternalSite();
6
7            if (confirmation) {
8                const url = target.getAttribute("href");
9                if (url) {
10                    window.open(url, "_blank");
11                }
12            }
13
14            event.preventDefault();
15        }
16    });
17});
18
19//function confirmExternalSite() {
20//    const msg =
21//        "This link shall take you to a page outside the {www.ncl.res.in / www.ncl-india.org}. For any query regarding the contents of the linked page, please contact the webmaster of the concerned website.";
22
23//    return confirm(msg);
24//}
25
26function confirmExternalSite(url) {
27
28    const msg =
29        "This link shall take you to a page outside the {www.ncl.res.in / www.ncl-india.org}. For any query regarding the contents of the linked page, please contact the webmaster of the concerned website.";
30
31   return confirm(msg);
32
33    //if (confirmResult) {
34    //    window.open(url, "_blank");
35    //}
36}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.