Getting a direct url when a javascript button is clicked on a specific website

I am showing an online site.

When you click on the "A" button, it processes the task and goes to another HTML page. However, this direct address is similar to "hidden" (difficult to explain).

For example, for each page that I access with a simple click of a button, the same URL is always the same (for example, http://host.com for each page I display from them).

I am using Firefox and I need to know how to get the exact HTML address (or direct URL) used to display these full new pages. I managed to do this a few months ago, but no more.

This will help me automate some tasks and stakeout programs. I am open to any Linux browser if you find a way to help me. Thank you very much.

+4
source share
2 answers

this is similar to using domain masking. you can check the source and see if the frame is used on the page. the source should indicate the src of the frame, showing the location of the page.

<frame src="page.html"> 
0
source

If the button uses window.open to navigate to the URL, you can override this method and intercept the URL:

 var oldOpen = window.open; window.open = function(){ console.log(arguments[0]); oldOpen.apply(window, arguments); }; 
0
source

Source: https://habr.com/ru/post/1440595/


All Articles