<html>
<head>
<script language="javascript">
function test(str) 

alert(document.all("modify").value); 

</script>
</head>
<body> 
<form name="form1">
      <input type="button" name="pacert_edit" value="修改" onclick="return test('hehe');" > 
<input type="hidden" value="success" name="modify" id="modify"> 
</form>
</body> 
</html>