Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need a multiple-line popup, alert-style javascript box.

Status
Not open for further replies.

wrstrong

Programmer
Joined
Jun 18, 2002
Messages
3
Location
US
I know how to open a single line popup alert box, but I need to open a box that has information like this....

name
street address
city, state zip

{ok}

Can you help?

Thanks in advance...

Bill Strong
 
if i understand what you want, the answer is easy. you just need to include some new line codes ("\n") in the string that is part of the alert.

for example...

Code:
strName = "john doe";
strStreet = "400 West Street";
strLocale = "Belltown, MI 45811";
alert(strName + "\n" + strSteet + \n + strLocale);

glenn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top