//flex table opened by JP

Click to See Complete Forum and Search --> : Java Alert


Dragonjucr
06-17-2002, 11:12 AM
Does anyone know how to code the below script so I can enter text on the multiple lines? I want to put a message in here, but what to format it in paragraph form?

<SCRIPT LANGUAGE="JAVASCRIPT">
alert("Text Goes Here");
</SCRIPT>

Thanks

AltatemTC
06-21-2002, 12:33 PM
Try using \n whenever you want a new line

qball
06-22-2002, 01:30 AM
ok.


<SCRIPT LANGUAGE="JAVASCRIPT">
alert("Text Goes Here/n next line");
</SCRIPT>


AltatemTC,

Nice try, oops, try it. does it, work for you?

Dragonjucr
06-24-2002, 08:14 AM
Yeah, no luck with that..unless I am doing it wrong? I did the same as qball

MistralBurn
06-24-2002, 11:29 AM
I think qball had the wrong slash prior to the n, try this:

<SCRIPT LANGUAGE="JAVASCRIPT">
alert("Text Goes Here\n next line");
</SCRIPT>

That should work, that is of course assuming that the slash was wrong.

qball
06-24-2002, 11:28 PM
AltatemTC/MistralBurn,

my bad, **** java thinking, lol.

"\n" works

"/n" no workey.

hate parsing strings...

Dragonjucr
06-25-2002, 08:16 AM
YUP..that was it! Thanks people!