Jump to content

Mengao

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Mengao

  1. I have seen many websites with the extension .aspx. I'd like to know exactly what is that...and also I'd like to know if the extebsion .jhtml is similar to .html or .dhtml.Thanks for your attention.

  2. I was trying to make a simple login code but it's not working. Does anyone know what did I do wrong?

    <html><body><script type="text/javascript">function login(){if (user==="test" && pass==="test")document.write('Hello, welcome' +user+ '; What would you like to do?')}{elsealert('Your password is wrong!')} </script><input type="text" name="user" value="" id="pass" /><input type="password" name="pass" value="" id="pass" /><input type="button" name="login" value="Login" onclick="login()" /></body></html>

  3. change the "document.write("Hello, you are" + age + "years old"!)" to the document.write("Hello, you are" + age + "years old!"), then it must work.
    Is not working :-(
  4. I was making a simple code that you put the year you were born and it gives you your age; but it didn't work. Can you please tell me where am I wrong?Thanks.Here is the code:

    <html><head><script type="text/javascript">function disp_prompt()  {  var year=prompt("Please write the year you were born","1950")  var age=2006-year	{	document.write("Hello, you are" + age + "years old"!)	}  }</script></head><body><input type="button" onclick="disp_prompt()" value="Click here" /></body></html>

×
×
  • Create New...