Home >Web Front-end >JS Tutorial >Use JS to automatically open the implementation code of the link on the page_javascript skills

Use JS to automatically open the implementation code of the link on the page_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:01:561383browse

Make a simple note here to prevent yourself from forgetting.

The following are the main functions for automatically clicking and opening links. The functions will not be described in detail to prevent too many people from abusing them. People who are interested will understand at a glance that changing it is an evil program:

Copy code The code is as follows:

function randopen()
{
var len = $(“#urllist option”).length;
var num = 10;
for(i=1; i<=num; i )
{
randnum = Math.random()* len;
zn = Math.round(randnum);
u = $(“#” zn).val();
window.open(u,”urlfrm” i);
}
}

Record this for your reference only.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn