Click to See Complete Forum and Search --> : User Defined Navigation


kimr30307
04-15-2003, 12:52 AM
I am building a quasi-portal site using framesets. Does anyone know how I can have a formbox or user-entered text box that will allow users to enter any http address but keep that new link in an existing target frame that I specify on my page?

Also, is there any way to disable users from hitting <CTR-N> foir a new web browser page?

thanks

Kim R - Atlanta

Jona
04-15-2003, 01:17 AM
For your first question, here's some code:

<html><head>
<script>
function goTo() {
window.parent.frameName.location=document.frm.goto.value} }
</script></head><body>
<form name="frm" onsubmit="return false;">
<input type=text name="goto"> <input type=button onClick="goTo()" value="Go!">
</form></body></html>

Where frameName is the name of the target frame.

kimr30307
04-15-2003, 09:35 AM
Thanks... that worked great...

Kim

:)