Skip to content

Commit

Permalink
add example for iframe navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Feb 5, 2025
1 parent 80725e2 commit 0994dbb
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions iframeNavigation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Iframe Navigation</title>
</head>
<body>
<h1>Iframe Navigation</h1>
<iframe src="iframeNavigationInner.html"></iframe>
</body>
</html>
13 changes: 13 additions & 0 deletions iframeNavigationInner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Iframe Navigation Inner</title>
</head>
<body>
<h1>Iframe Navigation Inner</h1>
<button onclick="window.top.location.assign('iframeTarget.html')">Take me somewhere else...</button>
<a href="iframeTarget.html" target="_top">Take me somewhere else...</a>
</body>
</html>
11 changes: 11 additions & 0 deletions iframeTarget.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Iframe Target</title>
</head>
<body>
<h1>Iframe Target</h1>
</body>
</html>

0 comments on commit 0994dbb

Please sign in to comment.