I have an <object> which shows a table from an external website. The problem is that when you click on a link in the table, the site opens in the <object> window.
Is it possible that I click on a link, and the site opens normally and not in the <object> window?
No.
It would require that the page in the frame set the link targets to _top or _parent. By default a link will open in the same frame.
Assuming you don't control the page loaded into the frame, you have no way of changing the link target (and the same origin policy prevents you changing it with JS).
Related
While accessing any page inside an iframe when I click on any download link or url, browser default loader doesn't work.
I have loaded jqueryui page inside an iframe in below example. when I click on Stable link below Quick download section, it downloads zip file but during download it doesn't show loading bar in browser.
<iframe src="https://jqueryui.com/" title="Jquery" width="1024px" height="768px"></iframe>
https://jsfiddle.net/palak6041/1egsp74b/2/
I am scratching my head for this weird issue as originally in my application file being downloaded takes time and its frustrating for user to wait for it without any indication of something is in progress.
Is it possible to display default browser loader of parent page when we download / navigate in child iframe?
So I created an HTML GUI for a touchscreen monitor. The browser is supposed to always stay in fullscreen. Now I want to embed another website inside my HTML, which works pretty well.
My only problem now is, that when I click through the embedded webpage, new pages open without my GUI. This is a problem because I added navigation functionality to the GUI and since it always runs in fullscreen I can't use the back and forward buttons either.
So is there a way to make Firefox always open my HTML GUI, when it opens a new page and open the requested page as embedded in my GUI?
You should provide more information about how did you embed other site in your html gui.
The solution is to use <iframe> element, then all the links inside the iframe should be open in that iframe. And if you want any other link from your GUI to be open in that iframe, just add target="name_of_the_iframe" to that element, and a attribute name="name_of_the_iframe" to the iframe (ofcourse "name_of_the_iframe" is an example).
You can try using an iframe
From w3schools: "An iframe is used to display a web page within a web page."
Take a look at this link: https://www.w3schools.com/html/html_iframe.asp
Safari (v11.0.3 for example) now supports download attribute on anchor elements, BUT, using them will break other links on the page which use the _blank target browsing context.
Example:
<html>
<body>
<a href="/file_to_download" download>Download</a>
<br/>
View
</body>
</html>
Click on "View", browser opens page in new window.
Click on "Download", browser downloads the file requested.
Click on "View" again, browser downloads the page rather then open a new window.
Change the target attribute of the View anchor, and there are no problems (...except you'll not open a new window, of course.)
Other browsers handle this as expected, downloading one, viewing the other.
Am I missing something?
I've got some embedded iframe Bandcamp players on www.mangledmusic.net/releases. I set up our Bandcamp page to look like our website, which will have an image map of my sites page tabs. The link in the embedded players that takes you to bandcamp opens in a new tab every time. I have tried numerous solutions listed on this site, and none of them have worked. Is this possible? Obviously Bandcamp.com and my site are not the same domain. Thanks!
Are you able to edit the Bandcamp site? Every link in the Bandcamp iFrame has the target set to _blank. This tells the browser to open in a new window.
If you want the site to open in the same tab, you should use target="_top" in your links.
I am working on a new home for my browser.
When the src changes of the iframe (click search or something) I want to leave my site and go to where the iframe is going. How do I do this?
edit:// example: http://imgur.com/OvnCz.jpg
Just put a target attribute on the link with a value of _top, like this:
Google
That tells the browser to open the link in the top-most frame, that is the whole browser window. More information can be found here