If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

What's supposed to happen is that the user enters something in the dialog box, (lets say wizard) and then when the other button is clicked, the alert will show "Welcome to you, harry the wizard". I can't find why it won't work.

Also, if I directly add this line:
var x="wizard" it still won't work.