Click to See Complete Forum and Search --> : Help


lucas
02-08-2003, 12:53 AM
Can someone tell me what I am missing on this code or what I am doing wrong?

Nevermore
02-08-2003, 06:44 AM
What exactly do you want it to do - th e function can be fixed easily, but you aren't calling it, so it won't run.

lucas
02-08-2003, 12:26 PM
I am trying to create a object that will show the customer's email address and I have done something wrong can you help me?

Dan Drillich
02-08-2003, 09:07 PM
Lucas,

It's not clear what you want to achieve. :(
Please see if the following is closer to what you need.


<html>
<head>
<title></title>

<script language = "javascript">

function CustomerEmail () {
this.CustomerEmail = CEMail;
this.getCustomeremail = getEmail;
}

function getEmail() {
document.write ("Your email address is: "
+ "ladonnacarol@yahoo.com");
}
/*
function newEMail = new {
CustomerEmail"ladonnacarol@yahoo.com";

newEMail.getCustomerEmail();
}
*/
</script>

</head>
<body onload="getEmail();">

</body>
</html>

lucas
02-09-2003, 01:54 PM
Thanks Dan I understand now and you fixed what I was trying to do.


LaDonna