Not Working on Safari IOS IPHONE
-
Hi, i had to add a little js code to make it work with safari Iphone…
Here for those who have the same problems
jQuery(document).ready(function($){ var deviceAgent = navigator.userAgent.toLowerCase(); var agentID = deviceAgent.match(/(iphone|ipod|ipad)/); if (agentID) { $(".juiz_sps_button").click(function(){ var url = $(this).attr('href'); window.open(url, '_blank'); }); } });
or :
jQuery(document).ready(function($){ var deviceAgent = navigator.userAgent.toLowerCase(); var agentID = deviceAgent.match(/(iphone|ipod|ipad)/); if (agentID) { $(".juiz_sps_button").click(function(e){ e.preventDefalut(); var url = $(this).attr('href'); window.open(url, '_blank'); }); } });
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Not Working on Safari IOS IPHONE’ is closed to new replies.