PHP Learning Bench
This site is helpful to all basic learners in php.
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>
1 comment:
Vasanth
19 September 2012 at 23:46
Good sharing kamesh....
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Good sharing kamesh....
ReplyDelete