Board Thread:Support Requests - Getting Technical/@comment-2170536-20130822192438

Greetings,

I am working on a Javascript-based tool that displays images based on a drop-down selection by a user. Currently I am doing this as follows:

imgElem.src = " http://images.wikia.com/spottra/images/f/f0/Image.png ";

However, I'd like to be able to use something similar to this:

imgElem.src = " "

(i.e. without having to pre-determine the full path of the image). Is there a way to do that within Javascript? 