Hola! claro que se puede te dejo el código..
<!doctype html>
<html lang="es">
<head>
<title>Pagina</title>
<meta charset="uft-8" />
<script>
function verde()
{
var url="verde.html";
document.getElementById('ifm').src=url;
}
function rojo()
{
var url="rojo.html";
document.getElementById('ifm').src=url;
}
</script>
</head>
<body>
<iframe id="ifm" src="rojo.html"></iframe><br/>
<input onclick="verde();" type="button" value="verde" />
<input onclick="rojo();" type="button" value="rojo" />
</body>
</html>
solo crea dos páginas en la misma carpeta rojo.html y verde.html y ponles un color de fondo verde y rojo para que lo pruebes.. si necesitas ayuda me dices..