<html>
<body>

<form>
<input type="hidden" id="hidden1" name="hidden1" />
</form>

<p>The name of the hidden field is:
<script type="text/javascript">
alert(document.getElementById("hidden1").name)
</script></p>

</body>
</html>