|
-
Dec 12th, 2000, 10:05 AM
#1
Thread Starter
Member
How do you do this ?? I need to display quote marks (") in an alert box.
Thanks in advance
Ian.
-
Dec 12th, 2000, 10:13 AM
#2
Fanatic Member
Hi Ian
nice and easy one this just use singel quotes instead
alert('"hello"');
Hope this helps
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Dec 12th, 2000, 10:16 AM
#3
Thread Starter
Member
Thanks for the reply, problem is i really need the quote marks displayed to be double " quote marks.
Ian.
-
Dec 12th, 2000, 10:18 AM
#4
You can use a backslash with a single quote or double quote to put them inside a literal in JavaScript. For example:
strExample = 'Programmers write \'Hello World\' programs often.';
or
alert("Programmers write \"Hello World\" often.");
Paul
-
Dec 12th, 2000, 10:19 AM
#5
Fanatic Member
yeah, that will work. use the sinqle quotes as your string delimiter and then you can put double quotes in side
alert(' jkjkj"jkjkj ');
Sorry, I didn't explain myself properly
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Dec 12th, 2000, 10:20 AM
#6
Fanatic Member
or paul's way works as well, he posted without me realising
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Dec 12th, 2000, 10:21 AM
#7
Thread Starter
Member
Thanks eveyone, figured it was something simple ...
Ian.
Ian Clarke BSc (Hons) - Web Applications Programmer
Ricardo Consulting Engineers Ltd.
Email : [email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|