Skip to content

Instantly share code, notes, and snippets.

View colinyoung's full-sized avatar
🚲

Colin Young colinyoung

🚲
View GitHub Profile
// Need to grab hash from page here
// Append hash to iFrame src url
var hash = (location.href.split("#")[1] || "");
// change to your application's requirement, probably hash or id
var your_param = "hash_value";
// Set path to the iframe file
var url = 'http://www.google.com/';
if (hash) url += '?' + your_param + '=' + hash;