javascript contentWindow code example
Example 1: javascript redirect
window.location.href = "http://mywebsite.com/home.html";
Example 2: deparam javascript
function parseParams(str) {
return str.split('&').reduce(function (params, param) {
var paramSplit = param.split('=').map(function (value) {
return decodeURIComponent(value.replace(/\+/g, ' '));
});
params[paramSplit[0]] = paramSplit[1];
return params;
}, {});
}