I have two issues can an alert be fired

prior or can a target be used




<script type="text/javascript">


function get(eid) {


var d = document;


var r = d.getElementById(eid);


return r;


}


function loadUrl(){


var url = get('url').value;


get('urlView').src = url;


}


</script>


<form>


<input type="text" id="url" />


<input type="button"
value="Submit"
onclick="loadUrl();" />


</form>




<iframe id="urlView" scrolling="no" width="200" height="100" align="center" frameborder="0" src=""></iframe>