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.
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function checkFormValues()
{
var f1Value = document.getElementById('field1').value;
var f2Value = document.getElementById('field2').value;
var f3 = document.getElementById('field3');
if (f1Value == '1' && f2Value == '2')
f3.style.visibility = 'visible';
else
f3.style.visibility = 'hidden';
}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
Field 1: <INPUT TYPE="text" ID="field1" onBlur="checkFormValues();"><BR>
Field 2: <INPUT TYPE="text" ID="field2" onBlur="checkFormValues();"><BR>
Field 3: <INPUT TYPE="text" ID="field3" STYLE="visibility:hidden;"><BR>
</FORM>
</BODY>
</HTML>
display
visibility
<span></span>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function checkFormValues()
{
var f1Value = document.getElementById('field1').value;
var f2Value = document.getElementById('field2').value;
var f3 = document.getElementById('field3');
if (f1Value == '1' && f2Value == '2')
f3.style.visibility = 'visible';
else
f3.style.visibility = 'hidden';
}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
Field 1: <INPUT TYPE="text" ID="field1" onBlur="checkFormValues();"><BR>
Field 2: <INPUT TYPE="text" ID="field2" onBlur="checkFormValues();"><BR>
<span id="field3" style="visibility:hidden;">Field 3: <input type="text"><br /></span>
</FORM>
</BODY>
</HTML>
id="field3"
style="visibility:hidden;"
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function checkFormValues()
{
var f1Value = document.getElementById('urgency').value;
var f2 = document.getElementById('phone').value;
var f3 = document.getElementById('timetocall');
if (
f1Value == 'We will be needing help in the near future.' || f1Value == 'We need help immediately!')
f2.style.visibility = 'visible';
f3.style.visibility = 'visible';
else
f2.style.visibility = 'hidden';
f3.style.visibility = 'hidden';
}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<p><select size="1" name="urgency">
<option>We might be needing help in the near future.</option>
<option>We will be needing help in the near future.</option>
<option>We need help immediately!</option>
</select><br>
<span id="timetocall" style="visibility:hidden;">Best time to call: <input type="text"><br /></span>
<span id="phone" style="visibility:hidden;">Phone Number: <input type="text"><br /></span>
</p>
</FORM>
</BODY>
</HTML>
if
function checkFormValues()
{
var f1Value = document.getElementById('urgency').value;
var f2 = document.getElementById('phone').value;
var f3 = document.getElementById('timetocall');
if
(f1Value == 'We will be needing help in the near future.' || f1Value == 'We need help immediately!'){
f2.style.visibility = 'visible';
f3.style.visibility = 'visible';
}
else
{
f2.style.visibility = 'hidden';
f3.style.visibility = 'hidden';
}
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function checkFormValues()
{
var f1Value = document.getElementById('urgency').value;
var f2 = document.getElementById('phone');
var f3 = document.getElementById('timetocall');
if (f1Value == "2" || f1Value == "3"){
f2.style.visibility = "visible";
f3.style.visibility = "visible";
}else{
f2.style.visibility = "hidden";
f3.style.visibility = "hidden";
}
}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<p><select size="1" name="urgency" onChange="checkFormValues();">
<option value="1">We might be needing help in the near future.</option>
<option value="2">We will be needing help in the near future.</option>
<option value="3">We need help immediately!</option>
</select><br>
<span id="timetocall" style="visibility:hidden;">Best time to call: <input type="text"><br /></span>
<span id="phone" style="visibility:hidden;">Phone Number: <input type="text"><br /></span>
</p>
</FORM>
</BODY>
</HTML>
[code]