Skip to content

Instantly share code, notes, and snippets.

@tzbob
Created June 14, 2012 17:40
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 tzbob/2931678 to your computer and use it in GitHub Desktop.
Save tzbob/2931678 to your computer and use it in GitHub Desktop.
dirtyFrameHack = function() {
$("a").unbind("click");
return $("a").click(function(e) {
var href;
href = $(this).attr("href");
if (!~href.indexOf("#")) {
window.open(href);
return false;
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment