BetOnlineUK
Affiliate Guard Dog Member
- Joined
- Jun 8, 2016
- Messages
- 432
- Reaction score
- 203
Hi All,
I am hoping someone could help with this issue. I currently have a background image on one of my sites, which needs to be clickable to another site.
I have been using the below code which did use to work but for some reason it no longer is.
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#main-container').click(function(e) {
if( e.target !== this )
return;
window.open('https://www.xxxxxxx.com');
});
});
</script>
Anyone got any ideas why?
I am hoping someone could help with this issue. I currently have a background image on one of my sites, which needs to be clickable to another site.
I have been using the below code which did use to work but for some reason it no longer is.
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#main-container').click(function(e) {
if( e.target !== this )
return;
window.open('https://www.xxxxxxx.com');
});
});
</script>
Anyone got any ideas why?