Click on image, opens up a new tab?

Go down

Solved Click on image, opens up a new tab?

Post by xRelapsex on February 4th 2012, 1:29 am

Is it possible to have a image that when you click on it, it will open up a new tab?

For example, lets say there is a Enter button/image. When you click on the enter button/image, it will open up a new tab and you will be redirected to wherever the link takes you.
avatar
xRelapsex
New Member

Posts : 8
Reputation : 1
Language : English

Back to top Go down

Solved Re: Click on image, opens up a new tab?

Post by LGforum on February 4th 2012, 1:50 am

Yes its done by setting a target attribute on the link.
Code:

<a href="LINK" target="_blank"><img src="IMAGE URL"></a>
LGforum
LGforum
Hyperactive

Male Posts : 2263
Reputation : 260
Language : English
Location : UK

Back to top Go down

Solved Re: Click on image, opens up a new tab?

Post by xRelapsex on February 4th 2012, 1:54 am

Thanks!
avatar
xRelapsex
New Member

Posts : 8
Reputation : 1
Language : English

Back to top Go down

Solved Re: Click on image, opens up a new tab?

Post by Sanket on February 4th 2012, 5:44 am

Topic Solved & Locked
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2829
Language : English
Location : Mumbai

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum