0

Sorry for the stupid question. I tried looking for an answer somewhere, but couldn't find any. I can't get this code to work:

<div onmouseover="this.style.backgroundImage = 'url('#')'";>
</div>

Help?

1 Answers1

3

Escape single quotes:

<div onmouseover="this.style.backgroundImage = 'url(\'#\')'">
</div>
artin
  • 1,764
  • 1
  • 17
  • 23