Title: change source via javascript
Last modified: May 25, 2020

---

# change source via javascript

 *  Resolved [andreas.kastl](https://wordpress.org/support/users/andreaskastl/)
 * (@andreaskastl)
 * [6 years ago](https://wordpress.org/support/topic/change-source-via-javascript/)
 * Hello!
    I open a webcam image with your plugin – but the image in the lightbox
   do not refresh it shows an old image.
 * So I want to add a actual timestamp to the image src for example [http://www.xyz.at/webcam.jpg?20200525085911](http://www.xyz.at/webcam.jpg?20200525085911)-
   > so the actual image will be shown.
 * Could you help me please to do that? or you have a better solution?
 * Many thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [6 years ago](https://wordpress.org/support/topic/change-source-via-javascript/#post-12895960)
 * Hi, SLB will load whatever image the link is set to, so adding a link with the
   timestamped URL will display that image in the lightbox when clicked.
 * If this is not occurring, please provide a link to a page that exhibits the issue
   you are experiencing and I would be glad to take a closer look.
 *  Thread Starter [andreas.kastl](https://wordpress.org/support/users/andreaskastl/)
 * (@andreaskastl)
 * [6 years ago](https://wordpress.org/support/topic/change-source-via-javascript/#post-12895987)
 * Hello,
    Yes I made it, the trick was to add timestamp to href link instead to
   the src. Thanks!
 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [6 years ago](https://wordpress.org/support/topic/change-source-via-javascript/#post-12907875)
 * Yes, SLB displays the URL of the link that is clicked in the lightbox. The content
   of a link can be anything: text, a thumbnail image, etc.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘change source via javascript’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-lightbox.svg)
 * [Simple Lightbox](https://wordpress.org/plugins/simple-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-lightbox/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Archetyped](https://wordpress.org/support/users/archetyped/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/change-source-via-javascript/#post-12907875)
 * Status: resolved