You need to sign in to do that
Don't have an account?
Open image on click of text
Hi,
I want to open a Image when a link is clicked
<ol>
<li>Some text.......... Display Image<li>
<ol>
I am not sure how to use target attribute in anchor tag.
Display Image should be a link onclick of which i want to display a image.
Can you guys provide some input
Regards,
kumar
<script type="text/javascript">
function showImage(){
document.getElementById("imageDiv").style.display = "block";
}
</script>
<ol>
<li><a href="#" onclick="showImage();">Show Image</a><li>
<ol>
<div style="display:none" id="imageDiv">
<img src="image.jpg"/>
</div>
This is one solution. Hope this will help you.