OLD HTML Frames - html

I'm working on a project, where we are redirecting users to an external store in a different domain (we don't have access to that code). And I'm looking for a way to have a "thing" or anything to bring the user back to our main domain.
Remember the old framing system where you could click on an external link and you could have your info on top of the page and the content below, and you could click a "close this frame" link and it would be gone?
I remember Google used it for a while.
Right now that the only way that I have figured out to bring the users back.
does anybody remember that HTML tag or that method of doing it? I forgot what it's called.
Or if anybody has another idea on how to execute what I'm trying to achieve, I'm all ears :)
Don't you guys remember when you tried searching for something (back when yahoo was #1), and most of the results were in a frame that you needed to close because it was annoying, but most porn sites just redirected you to their site so that you didn't see the frame?

Iframe or a frameset with two vertically stacked frames.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/frameset
You give each frame a name and then you can use a target attribute on your links to specify in which frame to launch them.

It is enough to use something along the lines of
<a href="page.htm" target="_top">

Related

Automatically redirect from '/folder' to '/folder/index.html' with Hakyll or another issue with relative links

I want to implement static HTML website with multiple languages using Hakyll framework. I didn't come up with better solution than just put default language under website.com route and any other custom language at website.com/en route. Because I'm using static HTML and having multiple languages I should have multiple versions of every page, for example about.html. Such pages are generated automatically, so that's not a problem. But currently I have a problem with jumping those pages...
I have such link in my website.com/index.html:
<a href=about.html>
When I open this link from website.com/en I want to jump to website.com/en/about.html instead of website.com/about.html. But in reality I'm jumping from website.com/en to website.com/about.html. If I instead jump from website.com/en/index.html I go to website.com/en/about.html as I want. So I'm inserested in one of two possible solutions:
When I go to website.com/en I want to be redirected to website.com/en/index.html. I can see content of index.html from website.com/en but somehow I can't jump to relative link :(
Replace href=about.html with something more smart so I can automatically go folder/about.html from any folder.
Any help appreciated!

Facebook, StaticHTML and form summission

This is weird!
I have set up a form using RapidMailer, and on an external site it works fine. (Just to complicate matters, the form is within a <div> as I display a background image, and then use the <div> to position the signup box halfway down the page)
But ...
Put it within an Facebook (Thunderpenny) StaticHTML page, (which I think is <iframe>?) and whilst I can enter name/email, and the submit button shows mouse up/mouse down events, it just won't submit.
I tried adding "pointer-event:auto" to the div so that it was to the fore, but no go. And no good asking the app creator as I doubt I'll get a response. Anyone any ideas? (** I could include page code, but it's 90% links to external js files Rapidmailer sets up)
Is it 'cos I got a <div> within an <iframe>? Do I need to add an <object> to the code somewhere???
It turns out that for some reason, the HTML code cannot find / use the javascripts even with direct URL's. I strongly suspect it's to do with "cross browser" limitations. In otherwords, the StaticHTML <iframe> is on one server, and the HTML code is trying to access javascript on a second server. And as the RapidMailer script is using three scripts direct from jquery.com, it's difficult to know what can be eliminated as they all contain error trapping routines.
In the end, I had to add a direct link to a status update on the Facebook page, and redirect it to the signup form on my blog. I then pinned the post the top. Alas, now for some reason it won't display a graphic with the link, and instead insists on showing the URL itself! Oh well!

Dynamically updating <title>...</title> tag when new target is opened in an iframe

I am working on developing a web site for my soon to be formed business, and I decided to develop a single index page where the nav buttons target an iframe instead of a new window. Is there script I can use in any language that would update the title tag of the index page dynamically every time a new target is loaded in the iframe? I would appreciate any input on this. Thank you very much!
Using jQuery the code would look something like this:
​jQuery(document).ready(function(){
jQuery('#myframe').load(function(){
document.title="new title";
});
});​
But building your website like this has some serious drawbacks you might want to consider:
You will have to think of a way how people will land on the top frame if they find some sub site in their search engine of choice.
The changed page title will probably never be used by search engines as you are setting it with javascript (or the first issue applies).
Frames/Iframes cause memory leaks in IE (http://stackoverflow.com/questions/8407946/is-it-possible-to-use-iframes-in-ie-without-memory-leaks). This might only be a problem if your top frame will not be reloaded from time to time.
There might be problems when people try to print your website.
Your visitors might have problems when they try to bookmark a subsite of your website, as only the top frame will be bookmarked (not the content of the iframe).
...and I am sure there are many more issues with such a solution.

How to open an iframe from clicking an image

I'm wondering if anyone can help me. I'm hoping I can open an iFrame in the centre of my webpage from clicking a picture. So in effect the iframe would be hidden until the picture is clicked. I have a very small and simple upload form on another page that I would like to appear when the user needs to upload and click the picture. I've had a good look round on this site and google in general but not found what I'm looking for, or the basics weren't included because it's common knowledge for most people here. Would there also be a way of closing this when it's finished uploading too? The form currently diverts to the homepage when finished so It would be handy to have a close option as in the end (post successful upload) the iframe contents will be the same as the page it's displayed on.
The best/easiest I have come across has been on w3schools but I have read using html for iFrames is not widely accepted or it isn't the best option cross-browser.
I have been viewing and trying different code but without even the basic knowledge I can't get my head around it.
If anyone is able to help, please assume I'm 5 years old. I'm not daft but in terms of code I'm literally just starting.
Thanks in advance
You would need to add a javascript onclick function to your img tag which would open a new window upon a click. You would pass the window.open function the name of the html file you want to display. Something like this:
<img src="image.jpg" onclick="window.open('welcome.html')">

iframe to external sites

Is it legal to have an IFrame on a website which inside has an external website?
In an IFrame is it possible to only show a section of the src that isn't the top left of the site (for instance if there was a chart in the middle of a website, could u have just the chart in your Iframe, or at least start it centred there)
Is there any way to stop my IFrame from auto redirecting me to the external site
for 3: ie
<iframe src="http://fifa.com"></iframe>
Just sends me to fifa instead of actually showing that site in a frame.
Instead of using an iframe is it possible to copy the chart and source it back to where you got it from?
Fifa is probably using javascript to prevent you from placing the site in an iframe... and it's generally a pretty shady thing to do.
This depends on the rules of the external website. You should at least ask them for permission and only do it if they are OK with it (no replay does not mean they agree!)
No, an IFrame is like a new browser.
If the external site uses JavaScript to break out of frames, then the only way to prevent this is to disable JavaScript in your browser.
I guess it's legal, but it isn't decent.
Ah, so you only wanna show the scores i.e., I guess there should be a way, but again it's not decent, you just don't use such constructions, you just don't!
No! That's exactly the point of that redirect. The only way to do that will be with javascript disabled.