Comments in URL

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

    #1

    Comments in URL

    Hello,

    I realize that this may not be the most appropriate group for this
    message, but it is the best one that I could find.

    My question revolves around putting a comment into a URL. Does
    anybody know if it is possible to insert a string of text into a URL
    (or append one onto the end) such that it does not affect the way the
    page loads? For instance, I would like to type www.google.com< here is
    comment> and simply launch google. Is this possible?

    Thanks,
    Ben
  • Grant Wagner

    #2
    Re: Comments in URL

    Ben wrote:
    [color=blue]
    > Hello,
    >
    > I realize that this may not be the most appropriate group for this
    > message, but it is the best one that I could find.
    >
    > My question revolves around putting a comment into a URL. Does
    > anybody know if it is possible to insert a string of text into a URL
    > (or append one onto the end) such that it does not affect the way the
    > page loads? For instance, I would like to type www.google.com< here is
    > comment> and simply launch google. Is this possible?
    >
    > Thanks,
    > Ben[/color]

    <a href="http://www.google.com? here%20is%20com ment">Google</a>

    The stuff after the ? will be accessible to the host and client-side
    JavaScript on the page being loaded for that matter.

    --
    Grant Wagner <gwagner@agrico reunited.com>
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • McKirahan

      #3
      Re: Comments in URL

      "Ben" <bwilde@gmail.c om> wrote in message
      news:dae9916a.0 411252150.19daf 210@posting.goo gle.com...[color=blue]
      > Hello,
      >
      > I realize that this may not be the most appropriate group for this
      > message, but it is the best one that I could find.
      >
      > My question revolves around putting a comment into a URL. Does
      > anybody know if it is possible to insert a string of text into a URL
      > (or append one onto the end) such that it does not affect the way the
      > page loads? For instance, I would like to type www.google.com< here is
      > comment> and simply launch google. Is this possible?
      >
      > Thanks,
      > Ben[/color]

      http://www.Google.com?your_comment_here

      Will do what (I think) you want.

      Note that it will show up in the Web server logs.

      Why do you want to do this?


      Comment

      Working...