diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 0323f632..68262f87 100755 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -1089,7 +1089,13 @@ // Wrap this in a try/catch block since IE9 throw "Unspecified error" if document.activeElement // is undefined when we are in an IFrame. try { - $( document.activeElement || "" ).add( "input:focus, textarea:focus, select:focus" ).blur(); + if(document.activeElement) { + if(document.activeElement.nodeName.toLowerCase() != 'body') { + document.activeElement.blur(); + } + } else { + $( "input:focus, textarea:focus, select:focus" ).blur(); + } } catch(e) {} // If we're displaying the page as a dialog, we don't want the url