All pastes #2046177 Raw Edit

Mine

public html v1 · immutable
#2046177 ·published 2011-04-13 23:16 UTC
rendered paste body
<!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"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title>Untitled 1</title><script type="text/javascript">function setInfo() {	var uFName = document.getElementById("fName").value;	localStorage["tFName"] = uFName;		var uLName = document.getElementById("lName").value;	localStorage["tLName"] = uLName	}function viewInfo() {		var displayInfo = localStorage["tFName"] + " " + localStorage["tLName"];	document.getElementById("viewBox").value=displayInfo;	}</script></head><body><table>	<tr>		<th colspan="2"><h3>Enter Personal Info</h3></th>			</tr>	<tr>		<td>First Name:</td>		<td><input type="text" id="fName" value="" /></td>	</tr>	<tr>		<td>Last Name:</td>		<td><input type="text" id="lName" value="" /></td>	</tr>	<tr>		<th colspan="2"><input type="button" id="setInfo" onclick="setInfo();" value="Save Information" /></th>	</tr></table><table>	<tr>		<th><h3>Display Info</h3></th>	</tr>	<tr>		<th><input type="button" id="viewInfo" onclick="viewInfo();" value="View Information"/></th>	</tr>	<tr>		<th><input type="text" id="viewBox" value="" /></th>	</tr></table></body></html>