Recent Comments
Archives
- July 2024
- May 2024
- April 2024
- January 2024
- December 2023
- November 2023
- October 2023
- August 2023
- May 2023
- April 2023
- January 2023
- November 2022
- September 2022
- July 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- November 2021
- August 2021
- July 2021
- May 2021
- February 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
Tag Archives: javascript code
Get Caller JavaScript File Location
If you need to get the Path to the current Javascript file being executed, you can use this small function: const location = (function () { if (document.currentScript) { let link = document.currentScript.src; let lastIndex = link.lastIndexOf(‘/’); link = link.substring(0, … Continue reading