Javascript code to get current App name in Visualforce page
<script>
var myappname = document.getElementById(“tsidLabel”).innerText;
alert(myappname);
</script>