Jump to content

replace file from jpg to html


buti

Recommended Posts

you can change the information within a div by using .innerHTML... like this:

<div id="changeme" align="center"><img src="files/xxxxxx.jpg"></div><script>document.getElementById('changeme').innerHTML = "rotate.html";</script>

but I assume you want to actually display the contents of rotate.html... which means you'll need to use an Iframe to display it, or just get rid of rotate.html all together and have javascript write what ever rotate.html would have contained using the example above.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...