ClulessChris
IS-IT--Management
I have a div at the bottom of my page with the id 'topLink'
useing conditional statements I'd like to place a boookmark to the top of the page if the browser is IE6.
Have tried the following, but can't see where my error is.
I'm fairly new to Javascript.
Never knock on Death's door: ring the bell and run away! Death really hates that!
useing conditional statements I'd like to place a boookmark to the top of the page if the browser is IE6.
Have tried the following, but can't see where my error is.
I'm fairly new to Javascript.
Code:
<!--[if IE 6]>
<script type="text/javascript">
function onLoad(){
document.getElementById('topLink').innerHTML = '<p><a href="modern_history.htm#top">Return to Top of Page</a></p>';
}
</script>
<![endif]-->
Never knock on Death's door: ring the bell and run away! Death really hates that!