I have a separate javascript file (*.js) that is included in my asp.net mvc4 view. In that js file I am using razor notation to get the path of an image like this:
@Url.Content("~/images/MyImages.gif")
but it is not working so how to obtain the correct path poiting to the image from js file if razor cannot be used?