Skip to content

Instantly share code, notes, and snippets.

@Happy-Ferret
Created May 4, 2016 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Happy-Ferret/8af2058b006c35899dc5f1a1dfee1a5c to your computer and use it in GitHub Desktop.
Save Happy-Ferret/8af2058b006c35899dc5f1a1dfee1a5c to your computer and use it in GitHub Desktop.
Load external html document into view
/* 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