Category: Javascript



  • Rewrite all target _blank links to use rel noopener
  • Run javascript on document ready
  • Detect Tor2Web client side
  • Detect when Enter is pressed within an Input Element
  • Select contents of element and its children and copy to clipboard
  • Intercept Console Messages in Javascript
  • Make the browser preconnect to a domain via javascript
  • Calculating Mean, Median, Mode, Range and Percentiles with Javascript
  • Set a variable only if it is undefined
  • Querystring parsing
  • Place AJAX GET request and trigger callback function with result
  • Find Prime Numbers in Range
  • Latest Posts


    Copyright © 2022 Ben Tasker | Sitemap | Privacy Policy
    Available at snippets.bentasker.co.uk, http://phecoopwm6x7azx26ctuqcp6673bbqkrqfeoiz2wwk36sady5tqbdpqd.onion and http://snippets.bentasker.i2p
    hit counter