VANILLAJS get timezone vanillajs - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Just a Web Code Solution
join us

get client timezone using vanillajs


 189

VANILLAJS


1

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="/vanilla.js"></script>
</head>
<body>

<script type="text/javascript">

var request = new XMLHttpRequest();
request.open('GET', 'http://freegeoip.net/json/', true);

request.onload = function() {
if (request.status >= 200 && request.status < 400) {

var data = JSON.parse(request.responseText);
alert("Success: " + data.time_zone);
} else {

}
};

request.onerror = function() {

};

request.send();

</script>

</body>
</html>


By        
The power of the user (%)
5%



The most helpful VANILLAJS solutions

get hostname using vanillajsget hostname using vanillajsVANILLAJS

Click to see more ...

  724     31

get client country using vanillajsget client country using vanillajsVANILLAJS

Click to see more ...

  738     24

get client region name using vanillajsget client region name using vanillajsVANILLAJS

Click to see more ...

  406     24

get ip address using vanillajsget ip address using vanillajsVANILLAJS

Click to see more ...

  841     22

detect cut paste in textarea using vanillajsdetect cut paste in textarea using vanillajsVANILLAJS

Click to see more ...

  281     18

get client latitude longitude using vanillajsget client latitude longitude using vanillajsVANILLAJS

Click to see more ...

  309     6

get client timezone using vanillajsget client timezone using vanillajsVANILLAJS

Click to see more ...

  189     1

get client city using vanillajsget client city using vanillajsVANILLAJS

Click to see more ...

  157     0

Welcome aboard!
We are happy you are here and
wish you good net-raft!