# iFrames and their src's

**URL:** <https://forum.kirupa.com/t/iframes-and-their-srcs/209274>\
**Category:** web dev\
**Created:** [December 7, 2006, 12:13pm UTC](https://forum.kirupa.com/t/iframes-and-their-srcs/209274 "2006-12-07T12:13:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RabBell](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rabbell/32/340_2.png) [@RabBell](https://forum.kirupa.com/u/RabBell)\
**Post date:** [December 7, 2006, 12:13pm UTC](https://forum.kirupa.com/t/iframes-and-their-srcs/209274/1 "2006-12-07T12:13:43Z")

</div>

why does this…

```auto

<script language="javascript">
<!--

function showFactsheets()
{
	
	document.getElementById("doclib_iFrame").src = "factsheets.html";
}

//-->
</script>
</head>

<body>
<a href="#" onclick="showFactsheets()">Factsheets</a>
<br /><br />

<iframe id="doclib_iFrame">

</iframe>

</body>

```

give me the error message

“Object Expected”

:huh:
