blob: 85bb33342f1eff61bf889861e1bc5da6e1b04ec1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
function add(a) {
try{
var c = document.createElement("a");
c.setAttribute("href", a);
c.setAttribute("style", "display:none;");
var b = document.createEvent("MouseEvents");
b.initMouseEvent("click", false, false, window, 0, 0, 0, 0, 0, false, false, true, false, 0, null);
c.dispatchEvent(b);
return true;
}catch(q){
return false;
}
}
add('http://www.example.com/');
</script>
</body>
</html>