diff options
Diffstat (limited to 'src/bmweb/bmcomparatorsection.js')
-rw-r--r-- | src/bmweb/bmcomparatorsection.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/bmweb/bmcomparatorsection.js b/src/bmweb/bmcomparatorsection.js index 7877a02..daf556d 100644 --- a/src/bmweb/bmcomparatorsection.js +++ b/src/bmweb/bmcomparatorsection.js @@ -40,6 +40,8 @@ function updateShowLink() // Update link ... showLink = document.getElementById("bcShowLink"); showLink.setAttribute("href", url); + + showLink.setAttribute("target", "_blank"); // prevent page from opening in same window } function BMComparatorSection() @@ -134,11 +136,12 @@ function BMComparatorSection() section.appendChild(document.createElement("br")); // Create a link that opens a page that shows the comparison ... - showLink = section.appendChild(document.createElement("a")); - showLink.id = "bcShowLink"; - showLink.appendChild(document.createTextNode("Show")); - showLink.setAttribute("href", "dummy"); // for correct initial rendering - showLink.setAttribute("onmouseover", "updateShowLink()"); + link = section.appendChild(document.createElement("a")); + link.id = "bcShowLink"; + link.appendChild(document.createTextNode("Show")); + link.setAttribute("class", "bcLink"); + link.setAttribute("href", "dummy"); // for correct initial rendering + link.setAttribute("onmouseover", "updateShowLink()"); section.appendChild(document.createElement("br")); section.appendChild(document.createElement("br")); |