Jump to content

"Randoms"


tantachar07

Recommended Posts

Can you explain what you mean for the first one and yes you can set the src with js.HTML

<img id="myimg"/>

JS

var img = document.getElementById('myimg');img.src = "myimage.gif";img.alt = "my alternate text";img.title = "image title";

you can set any html attribute of any html tag with js

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
×
×
  • Create New...