Jump to content

Question About Target Attribute?


taaron12

Recommended Posts

Hi guys.I'm wondering about the Target Attribute. On the site, it says it specifies where to open a document. Does that even include Divs? So, if I had a little gallery set up, where it was a list of images on one side, and an open div to the next. Could I use the target attribute to display the clicked on images in that open div? If not, what would you recommend reading into next to figure that aspect out?Thanks!

Link to comment
Share on other sites

So, if I had a little gallery set up, where it was a list of images on one side, and an open div to the next. Could I use the target attribute to display the clicked on images in that open div? If not, what would you recommend reading into next to figure that aspect out?
You could use JavaScript to change the src property of an img inside your div.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...