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.

How to get Windows 10 for free | How to install Windows 10: There is still a way to avoid paying…

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

Hands-on with the Star Wars fighting drones you can fly yourself

15 macOS Sierra tips | How to use macOS Sierra: Secret tricks and best new features in Apple's new…