<form>
<input id="thmas-input-text" type="netfang">
<input id="thmas-button" type="button" value="Fara í stillingar">
</form>
<script type="text/javascript">
const thmasButton = document.querySelector('#thmas-button');
const thmasInputText = document.querySelector('#thmas-input-text');
thmasButton.addEventListener('click', clickButton);
function clickButton() {
var URL = "https://reiknistofnun-my.sharepoint.com/personal/"+thmasInputText.value+"_unak_is/_layouts/15/people.aspx?MembershipGroupId=0&FilterField1=ContentType&FilterValue1=Person";
var win = window.open(URL, "_blank");
}
</script> |