Click here to Skip to main content
15,903,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends

this is a small code:
<div id='footer2'>Developed by <a href='https://www.whatever.com'><strong>my name</strong></a> </div>


plz guide me in one thing that whenever someone clicks over my name the link shud open in new page. and currently its opened in the same page.

plz guide
thanks
Posted

1 solution

Use the attribute named "target" in the anchor tag <a>

target="_blank"

_blank means a new window is opened everytime the link is clicked.
If you want just one window that opens use an arbitrary but unambiguous
name.

Cheers

Manfred
 
Share this answer
 
v3
Comments
dahras 16-Nov-10 7:31am    
thanks a lot ... plz can u modify the code accordingly. please
Manfred Rudolf Bihy 16-Nov-10 7:34am    
Well I think I told you what to do. Add attribute target like I said to your anchor tag.
I'm not going to do your coding. If you have a question regarding my answer feel free to
ask me. I'll surely answer you, but I wont do your work.
Toniyo Jackson 16-Nov-10 7:34am    
<a href='https://www.whatever.com' target="_blank>my name</a>
Manfred Rudolf Bihy 16-Nov-10 8:08am    
@Toni Jack: What you did is really counter productive, I provided the solution and OP didn't even try to do as he was told but insisted on us giving him the code. We should really not encourage this kind of behaviour on CP. If you post the finished anchor tag solution in your comment above as a second answer you can have 5 points from me :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900