I am a C# developer. My clientside javascript skills are very low.
In javascript I have a string value. That contains the following:
<div id="foo" data-redirectURL="bar">
<div>Lorem Ipsum</div>
</div>
How do I retrieve the value of data-redirectURL in this case: "bar" ?