Question:

WebBased input script?

by  |  earlier

0 LIKES UnLike

hello i would like to know a web based script that if someon typed xboxliveking it would out put it as http://www.youtube.com/watch?v=chHZ7EtSFbY thanks

 Tags:

   Report

1 ANSWERS


  1. <html>

    <head>

    <script type="text/javascript">

    function redirect()

    {

    if(document.getElementById("address").... == "xboxliveking")

    {

    window.location.replace("http://www.my...

    }

    else if(document.getElementById("address").va... == "chHz7EtSFbY")

    {

    window.location.replace("http://www.yo...

    }

    else

    {

    alert("Invalid address");

    }

    }

    </script>

    </head>

    <body>

    <form>

    <input type="text" id="address" />

    <input type="button" value="go" onclick="redirect()" />

    </form>

    </body>

    </html>

You're reading: WebBased input script?

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.