Open Window
This will create a new window and open a url in it.
by fonsecat
HTML
<a class="link_looks_like_button" onclick=openWin("http://www.sample.com",700,850);>Sample</a>
CSS
.link_looks_like_button {
background-color: #d3dce0;
border: 2px solid #787878;
cursor: pointer;
font-size: 1em;
padding: 3px;
margin-right: 8px;
width: auto;
text-decoration: none;
vertical-align: middle;
}
.link_looks_like_button:hover {background-color:#e2e2e2;}
.link_looks_like_button:active {border:1px solid grey;}
JavaScript 1.7
function openWin(url, width, height) {
myWindow = window.open(url, '_blank', 'width=' + width + ',height=' + height);
myWindow.focus();
}