Coding a link to open in another window

It is rather easy to write the code to open another browser window when clicking on a link.  You merely have to add “target=’_blank’” to the a tag.

Example to open in same browser window: Educational Technology Blog

//This is a standard link that will open in the same window
//Notice the absence of "target='_blank'"
Educational Technology Blog

Example to open in a new browser window: Educational Technology Blog

//This is a standard link that will open in a new browser window
//Notice the addition of "_blank"
Educational Technology Blog
This entry was posted in Personal. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>