Showing posts with label Browser. Show all posts
Showing posts with label Browser. Show all posts

JavaScript: browser type and version detection

To check for a specific browser type and version and display a popup, include below code in HTML page:
<script>
if (navigator.userAgent.toLowerCase().match("safari") && navigator.userAgent.toLowerCase().match("version/4")) {
window.alert("Detected Safari 4 browser!!");
}
</script>



As an Amazon Associate I earn from qualifying purchases.

JavaScript: browser type and version detection

To check for a specific browser type and version and display a popup, include below code in HTML page:
<script>
if (navigator.userAgent.toLowerCase().match("safari") && navigator.userAgent.toLowerCase().match("version/4")) {
window.alert("Detected Safari 4 browser!!");
}
</script>



As an Amazon Associate I earn from qualifying purchases.

YouTube.com warns Internet Explorer (IE6) users

YouTube.com has the "guts" to tell Internet Explorer 6 (IE6 ) browser users "We will be phasing out support for your browser soon."

The users of IE7 are OK.

This is great news for pretty much all Web developers as IE6 is a support nightmare and YouTube.com has a great market pull to make change.

This market pull was previously demonstrated with Flash plugin -- lot people downloaded the Flash plug in just to view movies on YouTube.com

Now users are asked to download Google Chrome, IE8, or Firefox 3.5 (Opera and Safari are not listed).

Our hats off to YouTube.com!

http://www.youtube.com



As an Amazon Associate I earn from qualifying purchases.

YouTube.com warns Internet Explorer (IE6) users

YouTube.com has the "guts" to tell Internet Explorer 6 (IE6 ) browser users "We will be phasing out support for your browser soon."


The users of IE7 are OK.


This is great news for pretty much all Web developers as IE6 is a support nightmare and YouTube.com has a great market pull to make a change.

This market pull was previously demonstrated with Flash plugin -- lot people downloaded the Flash plug in just to view movies on YouTube.com

Now users are asked to download Google Chrome, IE8, or Firefox 3.5 (Opera and Safari are not listed).

Our hats off to YouTube.com!


As an Amazon Associate I earn from qualifying purchases.

How to add Google Keyword Search meta tag

To add a google search keyword, you need to add below meta tag in your site HTML page:

<meta name="keywords"

content="blacktea, greentea, tea, tea pot, herbal tea" />



As an Amazon Associate I earn from qualifying purchases.

How to add Google Keyword Search meta tag

To add a google search keyword, you need to add below meta tag in your site HTML page:

<meta name="keywords"

content="blacktea, greentea, tea, tea pot, herbal tea" />



As an Amazon Associate I earn from qualifying purchases.

Google Keyword Search

How does google keywords search work?
- Google scans for similar search keyword i.e. football and how often it appears in site content. The more the merrier.
- Google uses mathematical calculations to find out site popularity. In other words, how often other websites have linked to your home website.
- Google calculates your site ranking.
- Google looks up your territory and retrieves results that are closer to your geographical location.
Tip about google search keywords:
- Basic keywords such as football instead of sport football
Below is a search results for football vs. sport football keyword. Notice how football keyword retrieves more results than sport football:


As an Amazon Associate I earn from qualifying purchases.

Google Keyword Search

How does google keywords search work?
- Google scans for similar search keyword i.e. football and how often it appears in site content. The more the merrier.
- Google uses mathematical calculations to find out site popularity. In other words, how often other websites have linked to your home website.
- Google calculates your site ranking.
- Google looks up your territory and retrieves results that are closer to your geographical location.
Tip about google search keywords:
- Basic keywords such as football instead of sport football
Below is a search results for football vs. sport football keyword. Notice how football keyword retrieves more results than sport football:


As an Amazon Associate I earn from qualifying purchases.

Enable JavaScript on Internet Explorer (IE8)

If you are getting a blank page with only the background image appearing, it is possible that your security setting does not allow JavaScript.
Click on any photo to enlarge it.
Open:
Tools menu -> Internet Options -> select Security tab -> click on "Custom Level" button
Make sure that "Scripting" is enabled:
Click "Apply" button.
Verify that the page appears correctly.


As an Amazon Associate I earn from qualifying purchases.

Enable JavaScript on Internet Explorer (IE8)

If you are getting a blank page with only the background image appearing, it is possible that your security setting does not allow JavaScript.
Click on any photo to enlarge it.
Open:
Tools menu -> Internet Options -> select Security tab -> click on "Custom Level" button
Make sure that "Scripting" is enabled:
Click "Apply" button.
Verify that the page appears correctly.


As an Amazon Associate I earn from qualifying purchases.

Enable JavaScript on FireFox (All versions)

If you browser security permissions are too strict, the JavaScript may be disabled. Since JavaScript does not pose a security risk,you can enable it as follows:
Check "Enable JavaScript" (Click on the photo to enlarge it)


As an Amazon Associate I earn from qualifying purchases.

Enable JavaScript on FireFox (All versions)

If you browser security permissions are too strict, the JavaScript may be disabled. Since JavaScript does not pose a security risk,you can enable it as follows:
Check "Enable JavaScript" (Click on the photo to enlarge it)


As an Amazon Associate I earn from qualifying purchases.

Enable JavaScript on Internet Explorer (IE6)

If you browser security permissions are too strict, the JavaScript may be disabled. Since JavaScript does not pose a security risk,you can enable it as follows:
Open Tools menu -> Internet Options -> select Security tab -> click on "Custom Level" button (Click to enlarge the photo)
SOn some pages you may need ActiveX controls enabled:
Make sure Scripting options are enabled (Click to enlarge the photo)
Click "Apply" button (Click to enlarge the photo)


As an Amazon Associate I earn from qualifying purchases.

Enable JavaScript on Internet Explorer (IE6)

If you browser security permissions are too strict, the JavaScript may be disabled. Since JavaScript does not pose a security risk,you can enable it as follows:
Open Tools menu -> Internet Options -> select Security tab -> click on "Custom Level" button (Click to enlarge the photo)
SOn some pages you may need ActiveX controls enabled:
Make sure Scripting options are enabled (Click to enlarge the photo)
Click "Apply" button (Click to enlarge the photo)


As an Amazon Associate I earn from qualifying purchases.

Browser URL encoding for &

Browser does not display urls with & character, to resolve this issue I wrote a method to convert & to its encoded value:

private String replaceSpecialChar(String originalImagePath)

{

int indexAmp = originalImagePath.indexOf("&");

if (indexAmp > -1)

originalImagePath = originalImagePath.replaceAll("&", "%26");

int indexSpace = originalImagePath.indexOf(" ");

if (indexSpace > -1)

originalImagePath = originalImagePath.replaceAll(" ", "%20");

return originalImagePath;

}



As an Amazon Associate I earn from qualifying purchases.

Browser URL encoding for &

Browser does not display urls with & character, to resolve this issue I wrote a method to convert & to its encoded value:

private String replaceSpecialChar(String originalImagePath)

{

int indexAmp = originalImagePath.indexOf("&");

if (indexAmp > -1)

originalImagePath = originalImagePath.replaceAll("&", "%26");

int indexSpace = originalImagePath.indexOf(" ");

if (indexSpace > -1)

originalImagePath = originalImagePath.replaceAll(" ", "%20");

return originalImagePath;

}



As an Amazon Associate I earn from qualifying purchases.

Fire Fox: emptying cache

To clear your cache on fire fox browser in Mac:
Go to Tool menu -> Clear Private Data


As an Amazon Associate I earn from qualifying purchases.

Fire Fox: emptying cache

To clear your cache on fire fox browser in Mac:
Go to Tool menu -> Clear Private Data


As an Amazon Associate I earn from qualifying purchases.

apt quotation..