Questions tagged [location-href]

JavaScript run in a browser has access to both the Document.location and Window.location which has a href property containing the whole URL associated with the content.

JavaScript run in a browser has access to both the Document.location and Window.location which has a href property containing the whole URL associated with the content.

References

177 questions
-1
votes
3 answers

How to extract email text in tag nested in multiple divs using BS4

I am trying to use bs4 to extract this email, I've tried multiple methods and the output is still either none or blank.
class = name 1
class = name 2
class = name 3

blah blah

-1
votes
2 answers

get href with python using find beautiful soup

I'm trying to scrape a real estate website, but can't figure out how to get the URL linked to each property. here's the code I have right now: I'm still new to coding, I searched other similar topics but couldn't find an answer that would…
mr-kim
  • 83
  • 1
  • 2
  • 8
-1
votes
1 answer

Open New Tab Link Facebook From Localhost When Button Onclick

I have button link in my web app. I run it from localhost. Source code like this, And I think it normally (No error):
Mukhlis Saputro
  • 189
  • 3
  • 17
-1
votes
1 answer

Javascript url content with parameter?

I wish to pass 'selectlang' parameter in javascript and redirect to the MVC controller but the var 'selectlang' have error and mention that it does not exist in current content? Please guide me thanks! My javascript: $('.filterlang').on("click",…
Edward.K
  • 556
  • 3
  • 11
  • 33
-1
votes
1 answer

Prevent link page reloading if it equals current (root) location

I have a menu with links: And if I'm at my root path (/) and click on…
lukaszkups
  • 5,790
  • 9
  • 47
  • 85
-2
votes
1 answer

Canonical URL Extraction

I'm very much new to the VBA programming. I have a list of keywords that are to be sourced in a certain website and I want their sourced links as the end result. I want this to be happened for all the keywords in my list using a VBA program. I tried…
jaga jagga
  • 37
  • 3
-2
votes
2 answers

how to get alert and location.href to both work in the same script

I have the following in a php controller: echo ''; exit(); The alert by…
DCR
  • 14,737
  • 12
  • 52
  • 115
-2
votes
1 answer

JS window.location.href not showing same value as in address bar

I need to read the url using some JS code in order to extract some parameters and execute some tasks depending on them. However I have two problems: -The webpage is not mine so I cannot modify anything on it or inspect it in great detail. I just…
jcf
  • 602
  • 1
  • 6
  • 26
-2
votes
1 answer

Find same href anchor on the page

I want to find anchor tags with same hrefs on the current page For example I have three anchor tags of same href on the current page like The class will be same for all the buttons. Sorry i forgot…
Owais Ahmed
  • 1,364
  • 1
  • 30
  • 62
-2
votes
1 answer

Which is the best redirection method used in html and javascript?

I have seen location.href, window.open, window.location, etc for redirection. I want to know which is the best method and works on every device. One more thing if I have using setTimer and loads the script after loads the page elements which is the…
Matt Cutts
  • 11
  • 4
-3
votes
1 answer

I am trying to open a new url page and get the title of new page

I am trying to open a new url page and get the title of new page. issue: it is openning new page but the title is for previous page, (not new page). // open pdf in new window page var url =…
404
  • 1
  • 1
-3
votes
4 answers

Add class to link

I need help adding a class to these links: Campus
Danis
  • 1,978
  • 3
  • 16
  • 27
1 2 3
11
12