Questions tagged [window.location]

window.location is a property in JavaScript for getting the current page's location.

671 questions
-1
votes
1 answer

Template not rendering Django (NoReverseMatch)

I am not exactly sure what the issue is but I have this code in my project that once I select a date it will bring up a table with the name of students in my classroom but Django keeps telling me that there isnt NoReverseMatch. i have double check…
-1
votes
2 answers

Change URL in Browser Detection

Hello I used UAParser as an identifier to detect what browser is used. for example I have a window.location.href of "localhost:8000/" when I reload and detect that it's from chrome it should change to "localhost:8000/#chrome This is my code in doing…
Pinky Promise
  • 229
  • 3
  • 18
-1
votes
1 answer

How do I get my webpage go to another page when the validations are true

I need help trying to get my webpage to go to a thank you page if all validation are true and entered correctly then it would go there. But I have no luck trying to get it to work. If there is any way that I can fix it.
-1
votes
1 answer

JavaScript to open in a new tab with location.href

I am building a custom linktree and Im struggling to find the right command to open these links in a new tab. Currently links are opened in current window as well as in a new tab. let url = document.createElement('url'); …
8ball
  • 1
  • 1
-1
votes
1 answer

What window.location.href return in page?

I used window.location.href as element filter. However, when I click on the filter button, not all elements are displayed. The ones I manipulate are not displayed, but the ones I return directly from the DB are. First, the button are like this, 1…
-1
votes
2 answers

Page does not load using window.href after login but loads when i go to url before login

I am trying to redirect the user after login is done so I used window.location inside my Login.js that redirects to Home.js. However, after succesful login the page redirect to the url but doesn't load the page. But if I manually try to access the…
-1
votes
1 answer

how to redirect using javascript?

As you can see, I'm using a login form that validates user and password online, generates a token and is supposed to redirect the user to a pacientes.html page once the token exists. The problem starts in renderApp. It does execute the…
-1
votes
2 answers

How to get url values with window.location.hash and reactjs?

I have this url http://localhost:3000/#/consultation/?idc=xxxd?iduser=Hyfzjg2 and I want to get the value of idc and iduser for using it on my APIs with ReactJs. I try this: let isInitialized = false; const initialValues = {}; const initValues = ()…
Ichrak Mansour
  • 1,850
  • 11
  • 34
  • 61
-1
votes
1 answer

Window.location.replace Error loading endlessly

My intention is to redirect mobile devices from the standard mobile main page of blogger to another page made by myself for that purpose. so I got this code and pasted on the head of the blogger theme template