Skip to content

Instantly share code, notes, and snippets.

@85degree
Created August 24, 2012 06:32
Show Gist options
  • Save 85degree/3446663 to your computer and use it in GitHub Desktop.
Save 85degree/3446663 to your computer and use it in GitHub Desktop.
Contoh IFRAME
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Contoh iFrame</title>
</head>
<frameset rows="80,*" frameborder="no" border="0" framespacing="0">
<frame src="./menu.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frame src="./utama.html" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<!-- Abdul Gaffur A Dama -->
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Konten Lain</title>
</head>
<body>
Konten Lain
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Menu</title>
</head>
<body>
<!-- Frame ini mengendalikan frame lain... lihat bagian "target" pada hyperlink... -->
<a href="./utama.html" target="mainFrame">Konten Utama</a> | <a href="./kontenlain.html" target="mainFrame">Konten Lain</a>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Utama</title>
</head>
<body>
Utama
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment