Team:KAIST-Korea/test

From 2011.igem.org

(Difference between revisions)
Line 5: Line 5:
function ask()
function ask()
{
{
-
        var x = prompt("Hi, would you like to view our webpage?", "");
+
     
-
        if(x == "Yes")
+
-
        {
+
-
            document.write("Ok, here we go!");
+
-
        }
+
-
        else
+
-
        {
+
-
            document.location.href="http://www.facebook.com";
+
-
        }
+
}
}
</script>
</script>

Revision as of 14:32, 12 August 2011