...

View Full Version : Tables and Forms



Dingbat
06-03-2003, 03:58 PM
Hi Guys,

Is it possible to populate a field in a form from a cell in a table when a window is closed?

The Dingbat :confused:

Garadon
06-03-2003, 04:20 PM
In theory this should work but no idea how u will test it
as the window closes lol.



<head>
<script language="JavaScript">
function populate()
{
document.Form1.Field.value=document.all.cell.innerHTML;
}
</script>
</head>
<body onUnLoad="popultate();">
<form name=Form1>
<input type="text" name=Field value="">
</form>
<table>
<tr>
<td id=cell>
Test
</td>
</tr>
</table>
</body>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum