Welcome visitor
* Login
* Register
It is currently September 15th, 2019, 11:58 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Change the src attribute from an external .js file
PostPosted: January 15th, 2010, 3:13 am 

Posts: 16
What would be the code to change the "src" attribute from a "img" element from a ".js" file?


Top
 Profile  
 
  Re: Change the src attribute from an external .js file
PostPosted: January 15th, 2010, 4:37 am 

Posts: 26
The same as with inline or embeded code:
document.getElementById('imgID').src='image.png';


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron