Created
April 27, 2012 07:26
-
-
Save Schubidu/2506904 to your computer and use it in GitHub Desktop.
Background-image style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var imageUrl = 'url("my-image.jpg")'.replace(/^url\(["']?/, '').replace(/["']?\)$/, ''); | |
alert(imageUrl); | |
// returns "my-image.jpg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment