Or you can use the escapes:
alert('The correct answer is: \"Hello world\"');
In message <983099907.1027590.0@a...>, wouter@r...
writes
>> > Hi,
>> >
>> > I want to display a message in a message box:
>> > right answer is : printf("Hello World!");
>> >
>> > alert("right anwser is : ...");
>> > The problem is how to display " ?
>> > Thanks a lot!
>> > Chan
>>
>> Hi,
>>
>> You can simply replace the double quotes with single ones i.e.
>> alert('The correct answer is: \"Hello world\"');
>>
>> The only problem with this is when you want single and double quotes
in
>a
>> phrase.
>>
>
>
>You could also use the html substitute of " (") i guess
--
Ian Richardson