Dev Kurd Dev Kurd - 2 months ago 29
Javascript Question

show image change URL without reload the page

how i can click image , open image with out reloading with by php and javascript?

echo '<li>
<a href="photo.php?id='.$id.'">
<div class="_th_alb">
<img src="image/'.$allbum_photos.'" >

with like image


What you want is called a modal.

You can see some examples right here:

To the modifying URL part:

You can use

window.history.pushState('a string or object', 'Title', '?image=as1234da3sdasd');

Hope this helps