Clouded-Ice
11-27-2002, 03:18 PM
I'm trying to create a little psuedo browser. I have the visitor type in the website into a text box then they click "Go." By clicking on "Go" they activate the url() function, but I seem to get an error written the way I have it.
<script language="JavaScript">
<!--
function url() {
browser.document.location = frm.url.value
}
//-->
</script>
<form name="frm">
<input type="text" name="url" size="75">
<input type="button" value="Go" name="Go" onClick="url()">
<br><iframe name="browser" height="89.5%" width="100%">
Your browser does not support inline frames or is currently
configured not to display inline frames.
</iframe></form>
<script language="JavaScript">
<!--
function url() {
browser.document.location = frm.url.value
}
//-->
</script>
<form name="frm">
<input type="text" name="url" size="75">
<input type="button" value="Go" name="Go" onClick="url()">
<br><iframe name="browser" height="89.5%" width="100%">
Your browser does not support inline frames or is currently
configured not to display inline frames.
</iframe></form>