PDA

View Full Version : Make link open in new tab/window


JavaScriptBank
11-01-2009, 11:55 PM
Use this simple JavaScript (http://www.javascriptbank.com/javascript/) to make all links (http://www.javascriptbank.com/javascript/link/) on your web pages open in new tab/window. Script is easy to setup, you should save them into a f... detail (http://www.javascriptbank.com/make-link-open-in-new-tab-window.html/en//)

http://www.javascriptbank.com/javascript.images/link/make-link-open-in-new-tab-window.jpg (http://www.javascriptbank.com/javascript/link/make-link-open-in-new-tab-window/preview/en/)
Demo: Make link open in new tab/window (http://www.javascriptbank.com/make-link-open-in-new-tab-window.html/en/)


How to setup

Step 1: Place JavaScript below in your HEAD section
JavaScript
<script language=javascript>
/*
Kevin Yank
http://www.sitepoint.com/authorcontact/48
*/
function externalLinks()
{
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++)
{
var anchor = anchors[i];
if(anchor.getAttribute("href"))
anchor.target = "_blank";
}
}
window.onload = externalLinks;

</script>
<!--
This script downloaded from www.JavaScriptBank.com
Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
-->


Step 2: Place HTML below in your BODY section
HTML
<a href="http://javascriptbank.com/">Home</a> |
<a href="http://javascriptbank.com/4rum/">Forum</a> |
<a href="http://javascriptbank.com/javascript/">JavaScript</a> |
<a href="http://javascriptbank.com/service/">Services</a> |
<a href="http://javascriptbank.com/javascript/submit-javascript-bank.html">Submit script</a> |
<a href="http://javascriptbank.com/thietkeweb/javascriptmall/">Documentary</a> |
<a href="http://javascriptbank.com/javascript/contact-javascript-bank.html">Contact us</a> |
<a href="http://javascriptbank.com/javascript/aboutus-javascript-bank.html">About us</a>
<!--
This script downloaded from www.JavaScriptBank.com
Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
-->







Command to print web page in javascript (http://www.javascriptbank.com/window-print-method.html) - Javascript Time Picker (http://www.javascriptbank.com/time-picker-with-child-window.html) - JavaScript Go To URL Box (http://www.javascriptbank.com/go-to-url.html)

stuv867
11-02-2009, 03:44 AM
This guide is for Backuping Movies with DVD Backup Tool (http://www.dvd-copy-clone-burn.com).Example DVD Movie: Fred Williamson Triple Feature Synopsis:Delta Force CommandoCaptain Beck (Fred Williamson) is ***igned to hunt a group of Latin American militants and recover the nuclear weapon they stole from the U.S. government.Deadly ImpactWhen they learn about a valuable hacking program with the ability to rig ****** slot machines, two corrupt cops (Bo Svenson and Fred Williamson) - who want the software for themselves - track the violent thieves who are in possession of it. Also starring Marcia Clingan.Mean Johnny BarrowsJohnny Barrows, a dishonorably discharged Army officer (Fred Williamson), is offered a *** as a hired ******in by a local mob. On his first ***ignment, everything goes awry when a thug (Roddy McDowall) starts an all-out gang war... with Johnny caught right in the middle. YTXZ01010YUBackuping Movies (http://www.dvd-copy-clone-burn.com/Artciles/Backuping-Movies-DVD-Movie-Replication-.html) just 4 steps: Step1: Click "Copy DVD to DVD" Button. Step2: Select DVD Source Movie and Target DVD Burner. Step3: Set Target DVD Settings and Target volume label. Step4: Click "Start Now" button to Clone DVD. Finished.