SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 251 | Next

Richard Wagner

"Professional iPhone and iPod touch Programming: Building Applications for Mobile Safari"

scrollTo(0,1);},100);}if(navigator.userAgent.indexOf
??? + ???(\???iPhone\???)!=-
1)window.onload=do_onload;???);
newDoc.close();
var pre = newDoc.body.appendChild(newDoc.createElement(???pre???)); pre.
appendChild(newDoc.createTextNode(document.documentElement.innerHTML));
If your iPhone is synching with Windows, you would want to fully URI encode the script:
javascript:var%20sourceWindow%3Dwindow.open%28%27about%3Ablank%27%29%3B%0Avar%20new
Doc%3DsourceWindow.document%3B%0AnewDoc.open%28%29%3B%0AnewDoc.write%28%27%3Chtml%3
E%3Chead%3E%3Ctitle%3ESource%20of%20%27%2Bdocument.location.href%2B%27%3C/title%3E%
3Cmeta%20name%3D%22viewport%22%20id%3D%22viewport%22%20content%3D%22initialscale%
3D1.0%3B%20user-scalable%3D0%3B%20maximumscale%
3D0.6667%3B%20width%3D480%22/%3E%3Cscript%3Efunction%20do_onload%28%29%7BsetT
imeout%28function%28%29%7Bwindow.scrollTo%280,1%29%3B%7D,100%29%3B%7Dif%28navigator
.userAgent.indexOf%28%22iPhone%22%29!%3D-
1%29window.onload%3Ddo_onload%3B%3C/script%3E%3C/head%3E%3Cbody%3E%3C/body%3E%3C/ht
ml%3E%27%29%3B%0AnewDoc.close%28%29%3B%0Avar%20pre%3DnewDoc.body.appendChild%28newD
oc.createElement%28%22pre%22%29%29%3B%0Apre.appendChild%28newDoc.createTextNode%28d
ocument.


Pages:
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263