the html structure:
<div class="user_register border_y">
<div>
<span style="color:green;"> after two seconds then auto redirect </span><br><br>
<a href="http://example.com/down/test.html">if you don't want to wait you can click this。</a></div></div>
i want to use jquery to get: after two seconds then auto redirect to the a label page. how should i do?
You don’t even need jQuery; vanilla JS will work fine…
JS:
getElementsByClassNamedoesn’t work in all browsers; so make sure you provide a fallback