# IE has no onclick anymore?

**URL:** <https://forum.kirupa.com/t/ie-has-no-onclick-anymore/293433>\
**Category:** web dev\
**Created:** [July 28, 2009, 10:03pm UTC](https://forum.kirupa.com/t/ie-has-no-onclick-anymore/293433 "2009-07-28T22:03:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [July 28, 2009, 10:03pm UTC](https://forum.kirupa.com/t/ie-has-no-onclick-anymore/293433/1 "2009-07-28T22:03:08Z")

</div>

```php

<input type="button" value="add" onclick="addSource()" id="addSource" />

```

I thought I could put an onclick on a button, but IE8 errors out with: **Error: Object doesn’t support this property or method**. I even converted it to a DIV and got the same error. I thought onclick worked in IE the last time I checked. Am I missing something?
