Skip to content

Instantly share code, notes, and snippets.

@mraichelson
Created June 17, 2009 21:13
Show Gist options
  • Save mraichelson/131514 to your computer and use it in GitHub Desktop.
Save mraichelson/131514 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
function doSomething(url){
window.open(url,"width=300,height=300");
return false;
}
</script>
...
<a href="foo.html" onclick="do_something(this.href);">go somewhere</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment