if(widgetStylesPrinted != true) {document.write('');}var widgetStylesPrinted = true;var content = '
Check if browser is mobile safari (iPhone)
html4strict
<html>
<head>
<script type="text/javascript">
function isiphone(){
return ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) != null;
}
 
function init(){
 
if (isiphone()){
document.getElementById("result").innerHTML = "true";
}else{
document.getElementById("result").innerHTML = "false";
}
}
</script>
 
</head>
 
<body onload="init()">
 
<p>iPhone or iPod? <strong><span id="result"></span></strong></p>
 
</body>
';document.write(content);