scarcella 11 Senior Software Architect

I have a website which dynamically gets images and then displays it but i have sub image which has to update the main image, but this main image is a lightbox which uses href link so i am wondering if someone can show me how to update this href using javascript or something but not reload the page.

I would be greatfull,
Thanks in advance!

Thanks,
Marais