Dev Kurd Dev Kurd - 1 year ago 101
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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download