Resources when opening a website - hyperlink

When we open a website, the browser will open other links to retrieve various resources, not just the site link itself. I'd like to know the links that browser connect when opening a site. Is there a tool to determine this thing?

My assumption here is that you are looking for the full details of all assets needed to load a webpage.
The easiest option is to use the "developer Tools" in the browser. This is the F12 key often times. There is a network tab that will show all assets loaded and a timeline in which they were loaded.

Related

How to save html page and link to this page simultaneously

I'm using MS Windows 10 and the Chrome browser.
I save a lot of various Web pages on various portals.
Therefore, currently, I have to save the original Web page itself with the Chrome SingleFile plugin and then I'm creating a separate .txt file with the link for this page.
The reason why I'm doing it is that I need to check a downloaded page with updated information from time to time later.
For example, first, I save https://www.google.com content page, then I create a separate file link.txt with the content "https://www.google.com".
Is there any Chrome plugin that allows saving both Web-page and a link simultaneously with one click? I.e., without creating the additional file link.txt
Or maybe any other solution?
I'm searching for the method to save both Web-page and link to this page with one click.

Does the URI scheme "View Source" cause the browser to load the content of the page?

Would the URI Scheme "View source" cause the content of a page to be loaded by the browser?
For example, typing in the address bar of Chrome view-source:https://www.google.com would show you the source code for google.com where as typing in https://www.google.com would show you the page we all know.
So my question is related to suspected phishing/malware sites. If I think a particular URL is malicious but want to verify by checking the source code, would going to view-source:https://www.malicioussite.com cause my browser to load the content of that page or not?
I normally use sites like WebSniffer.cc to check but it would be useful if this allowed the same.

Navigate between pages in Electron app

In an Electron application, what is the standard way to navigate to different pages / locations when a link is clicked?
I tried creating
<a href="/profile.html>profile</a>
and an HTML file named profile.html, but clicking the link just takes my app to a blank page.
What is actually happening when the link is clicked & what is the right way to do basic links?
Just use a relative link - this will work (note no slash at the beginning):
profile
This is because Electron uses local file:// URLs which map to your file system. If you link to /profile.html that will be looking for the file in the root of your drive, and you probably want it to be loading the file from the same directory instead.
Also if you put the profile.html in a directory called pages you could access it like this:
profile
Electron is designed to work best as a single-page application.
Clicking a link shouldn't load a new page but should manipulate the DOM to changes the contents on the same page.
If you use jquery you could use Tabs to swap between content https://jqueryui.com/tabs/
<a href="./profile.html>profile</a>
use ./{filename} to access the file in the same directory

opening default browser with delphi at specific position

I want to open a web page at default browser at a specific position and also open another webpages at that one, not new task of that browser. maybe user opens new task of that browser but by clicking a button in my delphi program the selected web page have to open at first one. is that possible? my company wants me to program such thing BUT I do not know how to do. I really appricate any help. thanks.
There are instructions here to open the default browser, but you may even be able to "run" a url, as you can from the Windows run command. You then need to retain the handle of that process so that you can do something with it.
To open a web page at a particular point you would ideally use a named anchor in the page, ie, the bit after a hash: http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_a_name If you don't have control of the page and there are no named anchors you could try scrolling: How to scroll the scrollbar in external application via WinAPI?

Opening my JQTouch Iphone WebApp for the home icon, why every external link open in another safari window?

Using the JQTouch library, usely links like the following ... should open the new page in the SAME window. That works fine when I go to the site using Safari BUT when I launch the site from the home saved icon, it opens a fullscreen site and on the first link it opens a NEW Safari window. How can I make it stay in the same original fullscreen window?
You have to set the target to _webapp. E.g:
<li class="arrow">Some Page</li>
and then it will load on the same page.
You need to look into manifest files.
The manifest file declares what files (html, javascript, css, jpgs etc.) that the iPhone should cache in order to make a webapp work offline. A part of the manifest file is used to declare which URLs are OK to use when in full screen (webapp) mode.
Specifically look at NETWORK in manifest files.
Example:
NETWORK:
*
This should allow access to any URL you like, and stay in webapp mode.
Alternatively use target="_self" - I haven't seen target="_webapp" anywhere.
/Mogens
One solution I found here is to change the way you write your links for a mobile app. Rather than a href='link.url' you'd write a href="javascript.window.location.href='link.url'"
Dislaimer: I haven't personally tried this yet, so I can't guarantee it will work. But logically, it does make sense.
Using target="_webapp" works only if you remove the rel="external", you cannot have both.

Resources