cfforms, cfinputs, onclick, ie
I am building a website for the first time, so I don't know alot yet. I have a form with cfinput buttons that call functions onClick. It works in FF but not in IE. I get the error "object expected" when it gets to the function() part. I created a simple way to test it.
Can you tell me why this works in IE
<head>
<script type="text/javascript">
function testresults() {
alert ("You typed: ");
}
</script>
</head>
<body>
<input type="button" name="test1" id="test1" onClick="testresults()">
</body>
but this does not work in IE?
<head>
<script type="text/javascript">
function testresults() {
alert ("You typed: ");
}
</script>
</head>
<body>
<cfform>
</cfform>
<input type="button" name="test1" id="test1" onClick="testresults()">
</body>
What do I need to do to make it work in IE?
By the way, I'm using Dreamweaver CS4, Coldfusion 9, Windows XP and IE8.
Brenda
