Menu
Why will this not work? When the page loads, I get an “Expected Identifier” error message. When the link is clicked, I get “‘Microsoft JScript runtime error: Object Expected’ was not handled” and it highlights “redirect(this)”:
<a href=”[url]” id=”emp” onClick=”redirect(this)”>View Multiple Employees</a>
The function looks like this:
<script language=”javascript”>
function redirect(this)
alert(this.id)
</script>
Basically what I want to do here is, on the onClick event of this link, change the action attribute of a form and submit it.