PHP Learning Bench
This site is helpful to all basic learners in php.
Showing posts with label
open window in new tab
.
Show all posts
Showing posts with label
open window in new tab
.
Show all posts
Tuesday, September 18, 2012
Open url in new tab using javascript
Javascipt :
<script type="text/javascript">
function click_o(url){
alert(url);
window.open(url, '_blank');
window.focus();
}
</script>
Html Content:
<a href="javascript:void(0);" onclick="click_o('http://www.jquery.com')">jquery</a>
Older Posts
Home
Subscribe to:
Posts (Atom)