Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2013
    Location
    Australia
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Change text on website depending on URL

    Hi,

    I have 2 URL's that point to the same hosting. I would like to change some of the text depending on which url was clicked to get to the hosting.
    Is this possible? if so can you give me some code.

    Thanks for any help.
    Peter

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,918
    Thanks
    56
    Thanked 545 Times in 542 Posts
    The simplest way would be using document referrer:
    https://developer.mozilla.org/en-US/...ument.referrer

    the other way would be with query strings, but that would just be more work for the same result


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •