function help(proj,file,title) { url = "../" + proj + "/help-" + file + ".html"; newWindow = window.open(url, file, "HEIGHT=400,WIDTH=550,scrollbars=1"); newWindow.focus(); } /* When the user clicks on the button, toggle between hiding and showing the dropdown content */ function myFunction(menuid) { // If we clicked on a different menu item, have to close anything that was open except for what we are asking to toggle var dropdowns = document.getElementsByClassName("dropdown-content"); var i; for (i = 0; i < dropdowns.length; i++) { var openDropdown = dropdowns[i]; if (openDropdown.classList.contains('show')) { if(openDropdown.id != menuid) { openDropdown.classList.remove('show'); } } } document.getElementById(menuid).classList.toggle("show"); } // Close the dropdown menu if the user clicks outside of it window.onclick = function(event) { if (!event.target.matches('.dropbtn') && !event.target.matches('.dropbtnbody')) { var dropdowns = document.getElementsByClassName("dropdown-content"); var i; for (i = 0; i < dropdowns.length; i++) { var openDropdown = dropdowns[i]; if (openDropdown.classList.contains('show')) { openDropdown.classList.remove('show'); } } } } function setBrowserDetail() { var element = document.getElementById("browserdetail"); //If it isn't "undefined" and it isn't "null", then it exists. if(typeof(element) != 'undefined' && element != null){ element.value = "test"; } }