Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
window.alert ( 'purl = ' + purl ) ;
ourl = new String ( purl ) ; // Create string object for testing.
if ( ourl instanceof String ) {
window.alert ( 'Variable ourl is a String object.' ) ;
} else {
window.alert ( 'Variable ourl is not a String object.' ) ;
}
if ( ourl.search ( /^http/i ) == -1 ) { // Is URL fully qalified.
urlisfq = 0 ; // No.
window.alert ( 'URL is local.' ) ;
} else {
urlisfq = 1 ; // Yes.
window.alert ( 'URL is fully qualifed.' ) ;
}
a = urlisfq ; // Set default; no address text box if local URL, else show location bar.
orx = new RegExp ( '/(\..*?$)/' ) ;
orx.compile ;
if ( orx.exec ( ourl ) == -1 ) { // Does URL have an extension?
window. alert ( "There is no extension." ) ;
urlext = '' ;
} else {
window. alert ( "There is an extension." ) ;
urlext = RegExp.$1 ;
}