How to Make a Fake Html Virus (IE)

Introduction: How to Make a Fake Html Virus (IE)

Creating an html fake virus is very simple...just need to learn some javascript...
1. Open notepad...
2. Type the following code
     <html>
<head>
<script>
function openWin()
{
myWindow=window.open("","","width=200,height=100");
myWindow.document.write("<p>This is 'myWindow'</p>");
}

</script>
</head>
<body onmouseover="openWin()">

</body>
</html>
.
.
3. Save it with extension 'htm' or 'html'.
4. Open it using IE..
.
.
I don't know whether it works with other browsers....

Be the First to Share

    Recommendations

    • Box Challenge

      Box Challenge
    • Barbecue Speed Challenge

      Barbecue Speed Challenge
    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest

    6 Comments

    0
    marmita00
    marmita00

    Question 4 months ago

    how can i make an image sound instead of text?

    0
    DREWNOLT
    DREWNOLT

    6 months ago

    Lol I made a version that makes a loop, so I had to close 50000 windows

    1
    DREWNOLT
    DREWNOLT

    1 year ago

    I created a different version based of of this: <html>
    <head>
    <script>
    function openWin()
    {
    myWindow=window.open("","","width=200,height=100");
    myWindow.document.write("<p>ERROR! VIRUS FOUND! To prevent this virus from destroying your computer, delete all of your files in the next hour.</p>");
    }
    </script>
    </head>
    <body onmouseover="openWin()">
    </body>
    </html>

    1
    GigA1
    GigA1

    3 years ago

    <script>

    var txt = a;

    function check() {

    if HTML = JavaScript {

    a = a + "a";

    console.log("The World is Destroyed");

    check();

    };

    };

    <script>

    1
    unkown_user1911
    unkown_user1911

    4 years ago

    It works in google chrome.
    Also, is there a way to make the window pop up in random locations, mine is just in the one spot