Thursday, 5 September 2013

how to load the iframe when clicked in javascript

how to load the iframe when clicked in javascript

how to load on div when clicked in html? someone help me please?
my javascript code:
<script>
function load(){
document.getElementById("tour").src="virtualtour/pano2/_html5/pano2.html";
}
my html code:
<iframe style=\"height: 400px; width: 990px;\" id=\"tour\"
onClick='load();'\"></iframe>

No comments:

Post a Comment