PageSourceSearch

https://id.standard.no/Basetheme/js/register-new-user-button.js

js standard.no collected 2026-10-01 11:26:24 UTC 501 bytes, 14 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2  // Get the button element by ID
3  var registerButton = document.getElementById('register-new-user-button');
4
5  if (registerButton) {
6    // Add event listener to button
7    registerButton.addEventListener('click', function () {
8      var registerUrl = registerButton.getAttribute('data-url'); // Get the URL from a data attribute
9      if (registerUrl) {
10        location.href = registerUrl; // Redirect to the URL
11      }
12    });
13  }
14});

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.