Jump to content

Question About Target Attribute?


taaron12
 Share

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!

Edited by taaron12
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. Edited by jkloth
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...