Skip to content
WJunction - Webmaster Forum

Link for hidden page...

Status
Not open for further replies.
Hi guys !
I tried few methods of doing that but couldn't achieve it.

So the script i want is to open a new page and loading its content without showing anything. Is that possible ?
 

17 comments

Exactly but it is not malware.
It is for votes so when the user click the image i don't want to be redirected to page where it says "Thanks for the vote",but just some echo like "Thanks for your vote" at the same page...
 
Code:
<style type="text/css">
#my-stuff {
display: none
}
</style>

 <iframe src ="[URL]http://www.extremecoderz.com[/URL]" width="0px" height="0px" id="my-stuff">
  <p>Your browser does not support iframes.</p> 
</iframe> -->
 
ok.

useage example:
Code:
<body onload="clickElement('myclicker')" >
This is ur link that gets clicked..
Code:
 <a id="myclicker" href="[URL]http://www.wjunction.com[/URL]"></a>
and this is the JS that does the magic.
Code:
<script type="text/javascript">
function clickElement(elementid){
var e = document.getElementById(elementid);
    if (typeof e == 'object') {
        if(document.createEvent) {
            var evObj = document.createEvent('MouseEvents');
            evObj.initEvent('click',true,true);
            e.dispatchEvent(evObj);
            return false;
        }
        else if(document.createEventObject) {
            e.fireEvent('onclick');
            alert('createEventObject');
            return false;
        }
        else {
            e.click();
            alert('click');
            return false;
        }
    }
}

</script>


This clicks a single link, but it would be easy as hell to just create another JS and call ClickElement 10, 20, 5000 times from it and call that JS from the onload event.
 
Okay i found solution by myself -

Code:
<script>
function changetitle()
{
document.getElementById("added").title="New Title";
}
</script>

<img id=added onclick=changetitle(); src=image.gif>
 
Status
Not open for further replies.

About the author

Porsche_maniak
Active Member · Joined
Auto racing,Porsche,Web Development
283
Messages
0
Reactions
16
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom