Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3953406
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:58:16+00:00 2026-05-20T01:58:16+00:00

I am currently working on an Enquiry system for our travel website. When a

  • 0

I am currently working on an Enquiry system for our travel website.

When a user submits an enquiry, i have set it to reload the same page (by grabbing the current url and setting it as the redirect).

Upon redirecting my javascript detects if the following string is present in the URL – “?sendto”, and if so it returns a thank you message.

After this process, im looking to remove the “?sendto=email@address.com” string from the end of the url (example url – http://www.google.com/index.html?sendto=email@address.com). My question is therefore:

Am i able to through a script, strip a part of the current URL

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:58:16+00:00Added an answer on May 20, 2026 at 1:58 am

    If you’re asking whether you can change the displayed URL in the browser bar, the answer is no. The reason? Would you want some random site to be able to change their URL to http://bankofamerica.com?

    If you’re asking how you can strip it off conveniently for the user (and are ok with a redirect), do something like this:

    document.location = document.location.toString().replace(/\?.*/, "")
    

    which will change a url like

    http://google.com/index.html?sendto=email@address.com
    

    to

    http://google.com/index.html
    

    but it will do it by redirecting the user’s browser to the new url.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a one-page layout for a website. Each section of
I am currently working on a registration based website, and I have the server
Currently working with NSURLConnection. Found a great website showing important delegate methods coming with
Im currently working on an app which lists a set of objects in a
Hello currently working on my management system. So my problem is my student has
Currently working on a snippet to input variables in which a user changes a
Currently working on trying to figure out asynchronous submission in ColdFusion. I always have
Currently working on a project to upgrade our Goole Maps API from v2 to
Currently working on a bespoke ecommerce application using Codeigniter. I have a products table
Im currently working with the new version of our lovely framework. Now where I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.