I would use an alert instead. alert
{
("Geolocation is not supported by this browser");
}