anyone for javascript?

  louandel 14:34 30 Aug 06

I have recently started a javascript course and I am two thirds of the way through it. Have started messing about a bit but have got stuck.
What I want to do is have a graphic that would be clicked on to produce a prompt box which would ask the uisers name. This would themn transfer to the same page under the banner.
howevewr the method I use only creates the users name on a seperate page. the code i use is

function getname()
myname = prompt("What is your name?","");
document.write(" font size 3>Welcome /font>");
document.write(" font size 3> /font>");

Any javascript experts know how I can get the users name on the same page, other than using a text box which i think looks a bit clumsy.

thanx for your time


This thread is now locked and can not be replied to.

Nintendo Switch review: Hands-on with the intuitive modular console and its disappointing games…

1995-2015: How technology has changed the world in 20 years

Method Studios' title sequence for BBC series Taboo is truly unsettling

Best Pages for iOS tips | How to use Pages for iPad & iPhone: 7 simple tips to get more out of…