I'm trying to target an iframe's source from a javascript form. So if someone typed in <http://www.reddit.com> the iframe's source would change to reddit.com 
I've tried a few things but you can't put a script tag within src, so is there any way to do this with javascript, or would i need to make a php echo function?

```
<iframe  src="http://www.stachoverflow.com/"></iframe>

```