I am trying to find out which operation system that user used for my web?
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = "Platform: " + navigator.platform;
document.getElementById("demo").innerHTML = x;
}
</script>
but i would to save the output in text in order to save it in my database ! How can i do it?? thanks in advance