Log in

Get absolute URL


Taken from https://davidwalsh.name/essential-javascript-functions

"Getting an absolute URL from a variable string isn't as easy as you think. There's the URL constructor but it can act up if you don't provide the required arguments (which sometimes you can't). Here's a suave trick for getting an absolute URL from any string input... The "burn" element href handles any URL nonsense for you, providing a reliable absolute URL in return."


    • Deuchar

      Unquestionably consider that that you said. Your favourite justification seemed to be on the net the easiest thing to understand of. I say to you, I certainly get annoyed whilst people consider concerns that they plainly don't understand about. You controlled to hit the nail upon the highest and outlined out the entire thing with no need side effect , people could take a signal. Will probably be back to get more. Thanks!

      • Darling

        I do not know whether it's just me or if perhaps everybody else experiencing issues with your blog. It appears as though some of the text within your posts are running off the screen. Can someone else please comment and let me know if this is happening to them too? This may be a issue with my internet browser because I've had this happen previously. Cheers

        • Ortega

          Helpful information. Fortunate me I discovered your web site by chance, and I am stunned why this twist of fate didn't happened in advance! I bookmarked it.

          • Westwood

            邮件营销怎么做有曾听过?知道这名字?听过这名字名声如雷贯耳呢。世上没有简单得来的名气。人们都明白,出类拔萃,是代价的付出。 邮箱数据



            OneLib developer/administrator
            There is 1 person using this snippet in their library: