open new tab and print javascript code example Example: open new tab with javascript window.open(url,'_blank');