Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > Javascript

Notices


 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 12-08-2016, 03:07 AM   #12
Aman897
Registered User
 
Join Date: Jul 2015
Posts: 129
Give your image an id. Then you can do this in your javascript. document.getElementById("blaah").src="blaah"; You can use the ".___" method to change the value of any attribute of any element.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Aman897 is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the difference between javascript and HTML?? eook.joc Graphic Design 20 03-12-2020 02:02 AM
Definitive Javascript to hide email address? ncjbhd Javascript 2 06-09-2014 05:27 AM
Good programming techniques: Minimizing javascript skywalker101 Javascript 7 03-19-2014 03:48 AM
Google launches Dart as a JavaScript killer kitchin Google 0 10-11-2011 12:47 AM
Single javascript across multiple pages. mjvndhsb HTML / DHTML 0 09-28-2011 02:07 AM


All times are GMT -7. The time now is 01:37 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.