I hope my question is one that is simple to answer, but unfortunately I don't have a great knowledge of javascript. I've spend a good portion of the day Googling the issue and trying various workarounds, but nothing has worked adequately thus far.
I am running a very simple piece of JavaScript so that when an image is clicked a separate window opens. This will work in every other browser (including mobile) except for IE. Following is what I've included in my head tag -
<script type="text/javascript">
function open_win() {
window.open("music/player/song-of-my-soul.html", "_blank, _top", "toolbar=no, location=no, directories=no, status=no, menubar=mo, scrollbars=yes, resizable=no, toolbar=no, copyhistory=yes, width=240, height=400,");
}
</script>
I have then created a div with a background image and hover image, that when clicked should open the above page. Following is the line I have placed within the div -
a href="#" alt="Listen to Samples" title="Listen to Samples" class="play-link" onclick="open_win()">
This works fine in every other browser, but will not work in IE. I have tried several ways to reference the JavaScript in the head, but none of them will work.
The page that I'm testing this on can be seen at the following - http://www.christlikemusic.com/song-of-my-soul.php# The 'Play' button in the center towards the bottom is the image that I have linked.
If anyone would have any ideas on how I might fix this I would be most grateful !
David