Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function Warning(Argument)
{
if(Argument=="open")
{
Win_Warning = window.open('NewQA.html', 'Win_Warning', 'top=50, screenY=50, left=50, width=365, height=400, scrollbars=no, scrollbar=no, menubar=no');
}
if(Argument=="close")
{
if (Win_Warning.closed+"" == "false")
{
Win_Warning.close();
}
else
{
}
}
}
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<title>Add a Question</title>
</head>
<body bgcolor="#ddddff">
<p><b>Add New Question</b></p>
<form name="Formie">
<p>Question<br /><textarea cols="40" rows="2" name="Question" id="Question"></textarea></p>
<p>Answer<br /><textarea cols="40" rows="10" name="Answer" id="Answer"></textarea></p>
<p><input type="button" value="Cancel" onclick="window.close();"></input> <input type="button" value="Clear Entries" onclick="Question.value=';Answer.value='"></input> <input type="button" value="Accept Entries" onclick="window.opener.document.MainForm.Question.value = Formie.Question.value; window.opener.document.MainForm.Answer.value = Formie.Answer.value; window.close();"></input></p>
</form>
</body>
</html>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<title>JavaScript Sample</title>
<script src="Sample.js" type="text/javascript"></script>
</head>
<body>
<form name="MainForm">
Question<br />
<input type="text" size="50" name="Question" id="Question"></input><br />
Answer<br />
<input type="text" size="50" name="Answer" id="Answer"></input><br />
<input type="button" value="Add Question" onclick="Warning('open');return false;"></input>
</form>
</body>
</html>