I'm having issues with this code, its working on all the browsers except IE.
THE HTML
<div class="separator">
<a href="http://www.domain.com/images/s1920/original.jpg">
<img height="250" src="http://www.domain.com/images/s400/photo.jpg" />
</a>
</div>
THE JAVASCRIPT
<script type='text/javascript'>
var ImageSource = document.getElementsByClassName('separator')[0].getElementsByTagName('a')[0].href;
ImageSource = ImageSource.replace(/0\//, '0-d/');
</script>
It works as expected but when i tested on IE it returns this error,
Message: Object doesn't support this property or method
What could be the problem?