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 5976605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:15:10+00:00 2026-05-22T21:15:10+00:00

Im trying to get this complete url: https://mail.google.com/mail/u/0/?ui=2#inbox/13047asdee8be4e1 Through the use of: var url

  • 0

Im trying to get this complete url:
https://mail.google.com/mail/u/0/?ui=2#inbox/13047asdee8be4e1

Through the use of:

var url = document.location.toString();

But it only returns up to https://mail.google.com/mail/u/0/?ui=2

I have also tried other ways like document.url, window.location and it still spits out same thing.

  • 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-22T21:15:10+00:00Added an answer on May 22, 2026 at 9:15 pm

    Try window.location.href. Read this: window.location – MDC

    Run this in console to be sure.

    function showLoc()
    {
      var x = window.location;
      var t = ['Property - Typeof - Value',
                'window.location - ' + (typeof x) + ' - ' + x ];
      for (var prop in x){
        t.push(prop + ' - ' + (typeof x[prop]) + ' - ' +  (x[prop] || 'n/a'));
      }
      alert(t.join('\n'));
    }
    showLoc();
    

    Disclaimer: This is the first time I am seeing all other answers wrong, except Jason 🙂 So many good answers. Both describing how to go about solving it in a round about way and then showing the correct way as an afterthought 🙂

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

Sidebar

Related Questions

This is what I'm trying: $.ajax({ type: 'GET', url: 'http://imgur.com/upload/', data: { url: 'http://upload.wikimedia.org/wikipedia/commons/3/3e/Phalaenopsis_JPEG.png'
Trying to get this example working from http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx However, I can't seem to get
I'm trying to get this sitemap clas s working. It appears to use LINQ,
I've been trying to get this working correctly all day, its nearly complete just
i am using http://www.asual.com/jquery/address/ plugin and trying to parse some url, this is what
I have been trying to days now to get this website completed ... however,
Trying to get this to work, with no luck: [DataMember] public Type ParameterType {
I'm trying to get this simple PowerShell script working, but I think something is
I'm trying to get this sample for AJAX to WCF working, with the following
I'm trying to get this piece of code working a little better. I suspect

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.