Could you tell me what is wrong with this html code?

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Guest
<script type="text/javascript">
//Made by Mario
a=a
{
var a=confirm("Are you serious?");
if (a==true)
{
a=confirm("If your really serious!");
if (a==true)
{
a=confirm("Boo!");
if (a==true)
{
a=confirm("So you decided to play a game");
if (a==true)
{
a=confirm("You'll be stuck playing this game forever");
if (a==true)
{
a=confirm("That's if you don't cancel or quit");
if (a==true)
{
a=confirm("Of course your too cool to quit");
if (a==true)
{
a=confirm("You are to cool to quit right?");
if (a==true)
{
a=confirm("If you quit i'll hack your computer and give you a virus");
if (a==true)
{
a=confirm("Then i'll set it so you can only visit little kid sites");
if (a==true)
{
a=confirm("Sites like pbs.com or Elmo's home page");
if (a==true)
{
a=confirm("I would murder myself if I was stuck on those kind of pages");
if (a==true)
{
a=confirm("Would you");
if (a==true)
{
a=confirm("You know if you want to learn HTML just do it");
if (a==true)
{
a=confirm("It took me a while to learn but look at the game your playing");
if (a==true)
{
a=confirm("It is your favorite really simple game isn't it");
if (a==true)
{
a=confirm("If it isn't I'll hack your computer");
if (a==true)
{
a=confirm("And do whatever I said I would do earlier");
if (a==true)
{
a=confirm("If you play this game to long it will put a virus on your computer");
if (a==true)
{
a=confirm("And do whatever I said I would do earlier");
if (a==true)
{
a=confirm("I like pie");
if (a==true)
{
a=confirm("Do you like pie?");
if (a==true)
{
a=confirm("I like pizza");
if (a==true)
{
a=confirm("Do you like pizza?");
if (a==true)
{
a=confirm("The game is finnaly coming to an end");
if (a==true)
{
a=confirm("Just kidding");
if (a==true)
{
a=confirm("Actually the game is coming to an end");
if (a==true)
{
a=confirm("I'm cereal");
if (a==true)
{
a=confirm("If you like this game tell all your friends");
if (a==true)
{
a=confirm("I mean it");
if (a==true)
{
a=confirm("I'll hack you if you don't");
if (a==true)
}
else
{
location.href="http://mysiterocksbad.bravehost.com/tests.html";
}
}
</script>
<script type="text/javascript">
location.href="http://mysiterocksbad.bravehost.com/";
</script>
Sorry it's java script not HTML
 
Basically, it's not HTML. You have to put the HTML code or it won't work.
The browser execute the instructions in HTML. If the HTML invoke a javascript procedure, then it's executed.
Besides that, you opened a lot of { and they're not matched by the same number of }.
Start with the basics and read a good book on HTML and javascript. Don't try to code with snippets taken from the web.
 
It doesn't look like html in the first place. Looks more like css. CSS that I don't recognise but I'm pretty sure // won't work as a comment. In html/css comments work like <!-- this is a comment>. You're probably confusing C++ with html/css maybe?

*** Edit ***
I also noticed you were using equal signs instead of colons. Usually CSS uses colons but I've never seen any CSS like that before so I could be wrong. Unless your using Javascript but I don't know anything about Javascript yet so I don't know.
 
Back
Top