This file contains hidden or 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
// 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; |