Last active
November 3, 2017 20:54
-
-
Save cgillis-aras/78401065c73e2c42ae72bfe9d4e01150 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<link rel="stylesheet" type="text/css" href="../styles/default.css" /> | |
<script type="text/javascript"> | |
window.dialogArguments = window.frameElement.dialogArguments; | |
var aras = dialogArguments.aras; | |
document.title = dialogArguments.title; | |
</script> | |
<script> | |
onload = function() { | |
var header = dialogArguments.header; | |
document.getElementById("pageHeader").innerHTML = header; | |
} | |
// Set up the code to run on input | |
function okButton() { | |
var usersName = document.getElementById("usersname").value; | |
dialogArguments.dialog.close(usersName) | |
} | |
function cancelButton() { | |
dialogArguments.dialog.close(); | |
} | |
</script> | |
</head> | |
<body> | |
<h3 id="pageHeader">Our Custom HTML Page</h3> | |
<div>What is your name?</div> | |
<input id="usersname" type="textbox"> | |
<div> | |
<input id="ok" value="OK" type="button" onclick="okButton()"> | |
<input id="cancel" value="Cancel" type="button" onclick="cancelButton()"> | |
</div> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment