471,618 Members | 1,557 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

How to use image as link W/O new window

Hi
My first page has an image as a link to the site.
Works good enough but it opens a new window.

Can I make it open in a new tab or the same window?

Expand|Select|Wrap|Line Numbers
  1. <div id="photo">
  2. <a href="main.html" target="_blank"> 
  3. <img src="images/RecRm cp7.jpg"  height="250px"/>
  4. </a>
  5. </div>
  6.  
Thanks
Can
Oct 26 '07 #1
2 1330
numberwhun
3,503 Expert Mod 2GB
Hi
My first page has an image as a link to the site.
Works good enough but it opens a new window.

Can I make it open in a new tab or the same window?

Expand|Select|Wrap|Line Numbers
  1. <div id="photo">
  2. <a href="main.html" target="_blank"> 
  3. <img src="images/RecRm cp7.jpg"  height="250px"/>
  4. </a>
  5. </div>
  6.  
Thanks
Can

You have posted your question under HTML/CSS Articles instead of the HTML/CSS Forum.
I have moved it across for you.

Please be sure, in the future, to post all questions into the Forum area instead of the Articles area.

- MODERATOR
Oct 26 '07 #2
drhowarddrfine
7,435 Expert 4TB
Remove the 'target' attribute which should only be used for frames.
Oct 26 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Ria Van Heerden | last post: by
8 posts views Thread by Michael Satterwhite | last post: by
14 posts views Thread by D. Alvarado | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.