Click to See Complete Forum and Search --> : Where did that script go...(newbie)
jakykong
06-10-2003, 01:56 AM
At one point, i found a reall handy litle script on The Javascript source (http://www.javascript.internet.com) that used a textbox so that the user could put a url in the box and click "go" to change the current frame... when i went to look for it(to *hopefully* save the hasle of reinventing the wheel!), I couldn't find it. if anyone here has any ideas as to where i could find something similar or that one exactly, or if anyone knows of another site that may have another similar script in javascript, asp, php, or any form of c, pleas reply to this message for it! thx.:) :) :)
Gollum
06-10-2003, 02:10 AM
Not exactly reinventing the wheel, but how about this...
<input type=text id=theURL>
<input type=button value="Go" onclick="window.location.href = document.getElementById('theURL').value;">
requestcode
06-10-2003, 07:09 AM
Here is a link to another example:
http://www.javascriptkit.com/script/script2/urljump.shtml
It would be better to do it like this:
<form name="myform>
<input type="text" name="theURL">
<input type="button" value="Go" onclick="document.framename.location.href = document.myform.theURL.value;">
</form>