Try the following:
Dom
<div id="captcha-container"> <img src="captcha.php" id="captcha"> </div>
JQuery
$('#reload').click(function() { $('#captcha').remove(); $('#captcha-container').html('<img src="captcha.php" id="captcha">'); });
NET Magazine
Each time I click Refresh, a new request is executed.
GET captcha.php 200 OK 127.0.0.1:80 GET captcha.php 200 OK 127.0.0.1:80 GET captcha.php 200 OK 127.0.0.1:80
Adding a new img element will restart the browser.
phpisuber01
source share