I’m learning a new synax to use in place of innerHTML. But the screen is still blank instead of displaying the jpg. Here is what I have:
In the <script>:
var newWP = document.createElement('img');
document.getElementById('output').appendChild('newWP');
newWP.getAttribute('src');
newWP.setAttribute('src', '0buggies/0118_buggies/wallpaper_18b2.jpg' );
In the body:
<div id='wrapper'><div id='scroller'>
<ul><li><a id='output' href='index.html' onclick='returnTo()'></a></li></ul>
</div></div>
Is my syntax wrong? This is as I understood it from the course in lynda.com.
Thanks!