By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,228 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,228 IT Pros & Developers. It's quick & easy.

How change address from FORM to location bar without php ?

P: n/a
Hi,

I've spent some time using google, and reading basic manuals about Java
Scripts and forms, but I can't find solution to this simple problem.

In web page I want a such type of form like shown below. When someone
enters an URL to text box, and hits return or clicks on "go" button,
browser would load desired page (but without opening new page).

<form name="enter_url">
<input type="text" name="address" >
<input type="button" name="go" value="GO">
</form>

Could someone write a JavaScript code that makes it ? and where I should
put it in form ? I can't use php or flash.

Tired of looking and trying

Kuba Gladykowski
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Sun, 04 Apr 2004 19:57:29 +0200, Kuba Glad <sp****@o2.pl> wrote:
In web page I want a such type of form like shown below. When someone
enters an URL to text box, and hits return or clicks on "go" button,
browser would load desired page (but without opening new page).

<form name="enter_url">
<input type="text" name="address" >
<input type="button" name="go" value="GO">
</form>

Could someone write a JavaScript code that makes it ? and where I should
put it in form ? I can't use php or flash.


I suppose it might be possible with Javascript, but why are you trying
to re-implement a function that every browser has anyway? Isn't it a
slight waste of effort?

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #2

P: n/a
Stephen Poley wrote:
On Sun, 04 Apr 2004 19:57:29 +0200, Kuba Glad <sp****@o2.pl> wrote:

In web page I want a such type of form like shown below. When someone
enters an URL to text box, and hits return or clicks on "go" button,
browser would load desired page (but without opening new page).

<form name="enter_url">
<input type="text" name="address" >
<input type="button" name="go" value="GO">
</form>

Could someone write a JavaScript code that makes it ? and where I should
put it in form ? I can't use php or flash.

I suppose it might be possible with Javascript, but why are you trying
to re-implement a function that every browser has anyway? Isn't it a
slight waste of effort?


It will look nice in logout page - you will have banners to popular
pages in internet, and this form, so you will be able to choose -
something like - "thank you for your visit - where do you want to go
next "? (NOT "today" ;)
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.