Q:

Javascript Code To Refresh This Kind Of Captcha

Guys i am looking for refreshing Captcha without refresh the page , and there is no refresh button ... is there anyway i can make this work out ?
this is the captcha part in the HTML document , i could'nt find the class section .
     <img class="captcha" border="0" src="https://www.gametwist.com/web/Captcha-Image/? 
     bc=000000&fc=188eae&h=58&w=258&fill=ffffff" alt="captcha image">

A:

The simplest way would be adding some random or timestamp parameter so that browser had to make new request, downloading new image. For example:
document.querySelector('.captcha').src += '&_=' + Date.now();

This code will append new GET parameter to query string similar to &_=1420922523150.

