html - Using Links in iOS Fullscreen Web Apps -
i'm working on quick landing page access number of small, mobile-optimized applications on same server. dashboard pattern. want have on home screen can of apps in fullscreen mode rather in toolbar-heavy mobile safari. however, when click on link, takes me out of fullscreen mode safari -- don't want.
is there way (e.g. using anchor's target attribute) stay in fullscreen mode while navigating different page? or should throw <iframe>?
you'll need intercept onclick event using javascript. example, here's iwebkit noeffect css class applied <a> tag:
window.onload = function () { function fullscreen() { var = document.getelementsbytagname("a"); (var = 0; < a.length;i++) { if (a[i].classname.match("noeffect")) { // nothing } else { a[i].onclick = function () { window.location = this.getattribute("href"); return false; }; } } } };
Comments
Post a Comment