Labels

new blog 2.0

2009/05/03

A simple javascript test for IPv6 connectivity.

JavaScript test for IPv6 connectivity to IPv6.google.com.
/*
 * http://blog.ooz.ie/2009/05/test-for-ipv6-connectivity.html
 *
 * A simple test for IPv6 connectivity to http://ipv6.google.com/
 *
 */

function loadOK() {
// Image loaded OK.
alert('Success. IPv6 connectivity to Google detected.');
}

function loadError() {
// There was an error loading an image.
alert('Error. No IPv6 connectivity to Google.');
}

var GoogleV6Logo = new Image();
GoogleV6Logo.onload = loadOK;
GoogleV6Logo.onerror = loadError;

GoogleV6Logo.src = "http://ipv6.google.com/intl/en_ALL/images/logo.gif";

No comments: