+ 6

How can I take an <a> tag in HTML and make that tag's href attribute repeat every 10 seconds?

13th Jun 2017, 10:05 AM
Iwan
Iwan - avatar
16 Answers
+ 6
Do you want to spam people or irritate a friend? 😂
13th Jun 2017, 10:48 AM
Nihar Raote
Nihar Raote - avatar
+ 5
To open the link, or what?
13th Jun 2017, 10:29 AM
J.G.
J.G. - avatar
+ 4
What do you mean, the link repeated?
13th Jun 2017, 10:29 AM
J.G.
J.G. - avatar
+ 4
No, but wondering how ads can be opened every 10 secs
13th Jun 2017, 10:41 AM
Iwan
Iwan - avatar
+ 3
Not actually, but the link to be repeated
13th Jun 2017, 10:24 AM
Iwan
Iwan - avatar
+ 3
Yes
13th Jun 2017, 10:29 AM
Iwan
Iwan - avatar
+ 3
Sort of
13th Jun 2017, 10:29 AM
Iwan
Iwan - avatar
+ 3
Ok guys, I want a <a> tag to be repeated in the background while the user is on it... You understand, it opens every 10 seconds
13th Jun 2017, 10:32 AM
Iwan
Iwan - avatar
+ 2
Soft of what?
13th Jun 2017, 10:31 AM
Calviղ
Calviղ - avatar
+ 2
repeated means duplicate links ?
13th Jun 2017, 10:34 AM
Calviղ
Calviղ - avatar
+ 2
Do you mean you open the link every 10 seconds? Wouldn't that be considered as spam?
13th Jun 2017, 10:39 AM
Limitless
Limitless - avatar
+ 2
https://code.sololearn.com/Wr50w6AWFIm7/?ref=app (Please don't tell anyone I gave you this code, please don't credit me.. 👺)
13th Jun 2017, 10:49 AM
Calviղ
Calviղ - avatar
+ 1
Do you mean open the href link and refresh it evey 10sec?
13th Jun 2017, 10:22 AM
Calviղ
Calviղ - avatar
+ 1
Try this on your pc I haven't tested it yet https://code.sololearn.com/WgIH7fhwDMJL/?ref=app
13th Jun 2017, 10:59 AM
Limitless
Limitless - avatar
+ 1
If it works, run the function in a setInterval and. boom, it opens every 10 seconds. But most of the spam and adverts works with a onClick attribute. The onClick the function is temporarily not working so the user can do what they want, then resets after certain actions took place
13th Jun 2017, 11:02 AM
Limitless
Limitless - avatar
0
use javascript setinterval method for that
13th Jun 2017, 9:21 PM
Carissa Philip
Carissa Philip - avatar