Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for openURL (0.07 sec)

  1. misc/chrome/gophertool/popup.js

    function openURL(url) {
      chrome.tabs.create({ "url": url })
    }
    
    function addLinks() {
      var links = document.getElementsByTagName("a");
      for (var i = 0; i < links.length; i++) {
        var url = links[i].getAttribute("url");
        if (url)
          links[i].addEventListener("click", function () {
            openURL(this.getAttribute("url"));
          });
      }
    }
    
    window.addEventListener("load", function () {
      addLinks();
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sun Oct 21 17:05:21 UTC 2012
    - 1020 bytes
    - Viewed (0)
Back to top