# AJAX: Change content on click

**URL:** https://forum.kirupa.com/t/ajax-change-content-on-click/257236
**Category:** web dev
**Created:** [April 11, 2008, 3:41pm UTC](https://forum.kirupa.com/t/ajax-change-content-on-click/257236 "2008-04-11T15:41:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![friet](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@friet](https://forum.kirupa.com/u/friet)
#### Post date: [April 11, 2008, 3:41pm UTC](https://forum.kirupa.com/t/ajax-change-content-on-click/257236/1 "2008-04-11T15:41:44Z")

</div>

Hi,

I know my question is stupid and easy but I can’t seem to find it. 🙂  
Looking for some code that changes the content of a div with a click w/o reloading the page.

I have a flash video, but i dont want to show it or play it before the user clicks a splash-image. So no Youtube-like solutions because the flashplayer shows even before the users clicks.

Hope I’m not too confusing. 🙂

There’s an example on this site: [http://flowplayer.org/](http://flowplayer.org/)  
The ‘Show me’-button/splashimage is a picture of a lake and when you click it gets replaced by the flashplayer/video.
