function argument with quote (single, double) mark.

I

iaminsik

Hi, I made a function prototype :
<head>
<script type="text/javascript">
function test (value) { alert (value); }
</script>
</head>

Now, I hope to call it with quoted string like this :
<body>
<input style="cursor: hand;" type="button" value="ÀÚ·á¼öÁ¤Ã¢ ¿­±â"
onmousedown="test( ' "abc' )" />
<input style="cursor: hand;" type="button" value="ÀÚ·á¼öÁ¤Ã¢ ¿­±â"
onmousedown="test( ' 'abc' )" />
</body>

But, as you know, a parsing error can occur in HTML.

In short, How can I transfer a string which has a quote (single or
double) character?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,002
Messages
2,570,259
Members
46,858
Latest member
FlorrieTuf

Latest Threads

Top