Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database URL problem

 
ernest fakudze
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm getting some stuff from a database and one of the fields is a website address. I want it to open a blank (target="_blank") when the user clicks on it. Problem is that I have a problem putting the target=_blank thingy. here is the stuff from the db..
<code>
<td><b>Website Address:</b><a href="<%=website%>"> <%=website%></a>
</code>
So where do I put the target="_blank here>
Thanks for your help in advance.
[This message has been edited by ernest fakudze (edited November 09, 2001).]
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
target is an attribute of the <a > tag. So it goes right beside the href attribute.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic