Skip to content

Instantly share code, notes, and snippets.

@cgillis-aras
Last active November 3, 2017 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgillis-aras/78401065c73e2c42ae72bfe9d4e01150 to your computer and use it in GitHub Desktop.
Save cgillis-aras/78401065c73e2c42ae72bfe9d4e01150 to your computer and use it in GitHub Desktop.
<!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