Apostrophe's within Apostrophe's - Quickie

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • InvisibleMan

    #1

    Apostrophe's within Apostrophe's - Quickie

    Thank in advance for your help...

    I have the following javascript:

    document.write( ' <a class="whitenav "
    href="javascrip t:window.extern al.AddFavorite
    ('http://www.mydomain.co m','Welcome to MyDomain.com')" >Bookmark
    Site</a> |');

    where the problem arises with the apostrophe's in:

    'http://www.mydomain.co m','Welcome to MyDomain.com'

    Due to the fact that there are already apostrophe's opening and
    closing the statement...

    Can anyone tell me how to get round this?

    Regards

    ----------------------------------------------
    Posted with NewsLeecher v2.0 Beta 5
    * Binary Usenet Leeching Made Easy
    * http://www.newsleecher.com/?usenet
    ----------------------------------------------

  • E Michael Brandt

    #2
    Re: Apostrophe's within Apostrophe's - Quickie

    \'


    InvisibleMan wrote:[color=blue]
    > Thank in advance for your help...
    >
    > I have the following javascript:
    >
    > document.write( ' <a class="whitenav "
    > href="javascrip t:window.extern al.AddFavorite
    > ('http://www.mydomain.co m','Welcome to MyDomain.com')" >Bookmark
    > Site</a> |');
    >
    > where the problem arises with the apostrophe's in:
    >
    > 'http://www.mydomain.co m','Welcome to MyDomain.com'
    >
    > Due to the fact that there are already apostrophe's opening and
    > closing the statement...
    >
    > Can anyone tell me how to get round this?
    >
    > Regards
    >
    > ----------------------------------------------
    > Posted with NewsLeecher v2.0 Beta 5
    > * Binary Usenet Leeching Made Easy
    > * http://www.newsleecher.com/?usenet
    > ----------------------------------------------[/color]


    --

    e michael brandt
    michael at valleywebdesign s.com
    www.valleywebdesigns.com ::: home of justso picturewindow & photoalbum

    --

    Comment

    • Randy Webb

      #3
      Re: Apostrophe's within Apostrophe's - Quickie

      InvisibleMan wrote:[color=blue]
      > Thank in advance for your help...
      >
      > I have the following javascript:
      >
      > document.write( ' <a class="whitenav "
      > href="javascrip t:window.extern al.AddFavorite
      > ('http://www.mydomain.co m','Welcome to MyDomain.com')" >Bookmark
      > Site</a> |');
      >
      > where the problem arises with the apostrophe's in:
      >
      > 'http://www.mydomain.co m','Welcome to MyDomain.com'
      >
      > Due to the fact that there are already apostrophe's opening and
      > closing the statement...
      >
      > Can anyone tell me how to get round this?[/color]

      Read the group FAQ, thoroughly. The answer to your question (among other
      tidbits of information) are covered there. The FAQ also explicitly
      discusses the href="javascrip t: pseudo-protocol and it's limitations.

      And when you finally do get it to work, test your link in any browser
      but IE.....

      --
      Randy
      comp.lang.javas cript FAQ - http://jibbering.com/faq

      Comment

      Working...