How to switch on the link used in an iframe on another website?
Developed a small 1-page simple website("module") on HTML, CSS, JS. Without PHP and databases. Contains links to other resources.
Customers want to connect in the system the module through an iframe.
Insert the iframe tag in the system:
margin: 0 auto;
The module itself podruzhilsya well, works. But as soon as click on buttons that lead to other sources out.
1) tried to use the attribute sandbox="allow-top-navigation" written "Allows you to open links in the parent frame's document",
The result: when you use this attribute, in General, all flies...
2) I tried to use the seamless attribute, it is written that "links in frame not displayed inside of a frame in the current document;"
The result: nothing, same blocks....
Please tell me what other solutions are there ? Or are we not correctly used iframe and its attributes ?
As I understand it, the main browser window has <iframe src="..."></iframe>, and when clicking inside it, they should open "out" (in the main browser window). If so, then you need the links to add target="_top" or target="_parent".