Created
May 4, 2016 09:57
-
-
Save Happy-Ferret/8af2058b006c35899dc5f1a1dfee1a5c to your computer and use it in GitHub Desktop.
Load external html document into view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* list.html */ | |
<p class="marquee"><a id="movie.mp4" onclick="saveURI(this.id);" href="videoView.html">A stunning movie!</a></p> | |
/* */ | |
/* loader.html */ | |
<div id="videoList"/> | |
<script> | |
function saveURI(e) | |
{ | |
window.sessionStorage.setItem("URI", e); | |
} | |
/* Load video list from external file */ | |
$( "#videoList" ).load( "test.html" ); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment