Results 1 to 2 of 2

Thread: Javascript, Document.write and quotes or mish tags

  1. #1
    Nit
    Guest

    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

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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
  •  



Click Here to Expand Forum to Full Width