---
title: "Discussion on \"Get background image URL for any element using JavaScript\" | Hashnode"
description: "Discussion on \"Get background image URL for any element using JavaScript\". In this post, I’ll explain how to get background image URL for any element using JavaScript. \nhttps://www.youtube.com/watch?v=uL-_NUkxCWc\nGetting Started\nYou can find the html & css code for this post in this repository.\nIn that repository, inside th..."
url: "https://hashnode.com/posts/get-background-image-url-for-any-element-using-javascript/601d6acc072bc516ff6f4003"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Get background image URL for any element using JavaScript](https://iampalash.hashnode.dev/get-background-image-url-for-any-element-using-javascript?utm_source=hashnode&utm_medium=feed)

In this post, I’ll explain how to get background image URL for any element using JavaScript. https://www.youtube.com/watch?v=uL-\_NUkxCWc Getting Started You can find the html & css code for this post in this repository. In that repository, inside th...

Feb 5, 2021 · 4 min read · iampalash.hashnode.dev  
Updated Jul 23, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#html](https://hashnode.com/tag/html)
-   [#css](https://hashnode.com/tag/css)
-   [#tips](https://hashnode.com/tag/tips)
-   [#programing](https://hashnode.com/tag/programing)

## Written by

[Palash Mondal](https://hashnode.com/@iampalash)

@iampalash · India

  
[View profile](https://hashnode.com/@iampalash)

Programmer • Lifelong Learner • Positive Thinker

Hi everyone 👋 I am Palash, a passionate programmer &amp; front-end developer. I like to share HTML, CSS, JavaScript and web development tips &amp; tricks and try to explain them in a simple manner. Happy Coding!

## Responses 2

Markdown supported · ⌘↵ to post

[bot5am](https://hashnode.com/@bot5am)

[Dec 23, 2022](https://hashnode.com/posts/get-background-image-url-for-any-element-using-javascript/601d6acc072bc516ff6f4003/comment/63a5bf9cc39f50da11a585eb)

Thanks brother. Was searching for this everywhere. It helped a lot.

[Palash Mondal](https://hashnode.com/@iampalash)

[Feb 28, 2023](https://hashnode.com/posts/get-background-image-url-for-any-element-using-javascript/601d6acc072bc516ff6f4003/comment/63a5bf9cc39f50da11a585eb#reply-63fe1f81f3c0552d3c691a85)

Glad you found it useful!

[Chirag Dev](https://hashnode.com/@ChiragCodes)

[Jul 23, 2021](https://hashnode.com/posts/get-background-image-url-for-any-element-using-javascript/601d6acc072bc516ff6f4003/comment/60fa5e1b74648858f4bb7707)

Awesome. Keep up the good work.

[Palash Mondal](https://hashnode.com/@iampalash)

[Jul 23, 2021](https://hashnode.com/posts/get-background-image-url-for-any-element-using-javascript/601d6acc072bc516ff6f4003/comment/60fa5e1b74648858f4bb7707#reply-60fa70f23282436c6313e58e)

Thank you so much! 😊
