Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Re: How to display double quote (


Message #1 by "Philip Cole" <philip_cole@e...> on Thu, 22 Feb 2001 11:53:49
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

  Return to Index