Write. function
- From: "cass27" <niknbren@xxxxxxxxxxxxxx>
- Date: 31 Aug 2006 01:40:21 -0700
I am just doing a course on Javascript and have begun to try out
different ideas. The effect I wanted was fro the user to click on a
graphic. Aprompt box would apprear asking their name and that imfo
would be transferred to the top of that page. However the users name
will only appear on a seperate page.
The code i am using (in brief) is as follows:
function getname()
{
myname = prompt("What is your name?","");
document.write("<font size 3>Welcome</font>");
document.write("<font size 3> </font>");
document.write(myname);
}
does anyone know how I cn get the users name to appear on the same page
(without using text box)? Maybe it cant be done using javascript.
Thanks for your time
Cass27
.
- Follow-Ups:
- Re: Write. function
- From: RobG
- Re: Write. function
- From: Dag Sunde
- Re: Write. function
- From: Evertjan.
- Re: Write. function
- Prev by Date: Re: how to draw pie graph or line graph
- Next by Date: array null after split string
- Previous by thread: Re: Automating Internet Explorer with Excel VBA and JavaScript
- Next by thread: Re: Write. function
- Index(es):
Relevant Pages
|