Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialChristian Linnerud
7,312 PointsHi. How do i change the settings, so that if i push one of the social icons a new page opens with my facebook profile?
Right now, if i push the social-icon the browser changes to facebook. So if i would like to go back to my webpage i have to paste the URL or use the go back function.
2 Answers
Brian Hayes
20,986 Pointsadd the target
attribute to the a
element with a value of _blank
so basically it will look something like this:
<a href="http://facebook.com/yourpage" target="_blank">Your Icon Here</a>
Thom Parry
2,924 PointsTry inserting target="_blank" as shown below:
<a href="link here" target="_blank">
Christian Linnerud
7,312 PointsThanks Thom!
Christian Linnerud
7,312 PointsChristian Linnerud
7,312 PointsThank you Joey. Helped a lot! :)
I figuered it out now, so that i have the icon aswell.
Have a nice day :)