Java Reference
In-Depth Information
<td>
<input type=”text” id=”password2” />
</td>
<td />
</tr>
<tr>
<td colspan=”2” class=”submit”>
<input type=”submit” value=”Submit” />
</td>
<td />
</tr>
</table>
</form>
<iframe src=”about:blank” id=”hiddenFrame” name=”hiddenFrame” />
</body>
</html>
Save this fi le as validate_iframe_form.htm , and save it in your web server's root directory. Also
locate the iframe_formvalidator.php fi le from the code download and place it in the same directory.
Open your web browser and navigate to http://localhost/validate_iframe_form.htm. You
should see something like what is shown in Figure 14-8.
Figure 14-8
Check for three user names and e-mail addresses. After you clear the fi nal alert box, press the browser's
Back button a few times. You'll notice that it is cycling through the information you previously entered.
The text in the text box will not change; however, the alert box will display the names and e-mails you
entered. You can do the same thing with the Forward button.
Search WWH ::




Custom Search