window.open = function (url, name, features, replace) { $('#iframe').attr('src', url); }