On Tue, 09 Jun 2015 12:53:08 +0200, Michael Tremer michael.tremer@ipfire.org wrote:
Is there a certain reason why this is done by using Javascript? An <a> tag would have worked fine as well I think. That would require to embed the image by using the <img> tag, but that is probably the cleaner solution any way...
I used this as a starting point: http://stackoverflow.com/questions/4465923/a-href-link-for-entire-div-in-htm...
The <a>-tag didn´t work when I wrapped it around the <div>-tag (and it would only be allowed for HTML5). I didn´t think about using an <img>-tag as I thought that it was cleaner as it is by using CSS.
I do know that some have JS deactivated and don´t like it, but in this case there is nothing lost. Is there anything else wrong with using JS?
Lars