|
-
Mar 13th, 2002, 11:48 AM
#1
Javascript, Document.write and quotes or mish tags
I have a JS function that does some document.writes... I want to be able to offer a link as well, whats JS equivilent for "
example
document.write(" <a href=" donkey.html" > moo </a> ")
wont work for obvious reasons, I think I need something along the lines of
document.write(" <a href=&JSQuote donkey.html &JSQuote > moo </a> ")
Geddit?
thanks
Nit
-
Mar 13th, 2002, 11:52 AM
#2
Black Cat
Use the backslash to escape the quotes.
Code:
document.write(" <a href=\" donkey.html\" > moo </a> ")
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
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
|