PDA

View Full Version : Library Comps sucks, need an address bar


Antoniohawk
12-08-2002, 08:33 PM
I use the comps at the library alot and they sure suk. The worst part is that they have no address bar on the kid ones. Is there a way to put an address bar in the content of the page, maybe using a form? i want to do this on an angelfire page.

bacterozoid
12-08-2002, 11:12 PM
Try this:

<SCRIPT LANGUAGE=JAVASCRIPT>
function weee() {
window.location = document.form.urlname.value
}
</SCRIPT>


<FORM name="form" action="javascript:weee();">
<INPUT type="text" name="urlname">
<INPUT type="submit" value="Submit">
</FORM>

cg9com
12-09-2002, 07:50 AM
little smaller:

<FORM>
<INPUT name="url" type="text" size="25">&nbsp;&nbsp;
<INPUT type="button" value="go" onClick="window.location=this.form.url.value">
</FORM>

bacterozoid
12-09-2002, 12:37 PM
Lol, of course it's smaller. ;) I gotta work on constricting my code...I am getting better with functions and the works though.

Antoniohawk
12-12-2002, 02:57 AM
Can i make it so that the site opens in a new window?

whammy
12-12-2002, 03:08 AM
bacterozoid, if you hang around here long enough, you will know so many different things you will probably amaze yourself sometimes.

;)

whammy
12-12-2002, 03:09 AM
P.S.

Opens the site in a new window:

<FORM>
<INPUT name="url" type="text" size="25">
<INPUT type="button" value="go" onClick="window.open(this.form.url.value)">
</FORM>

Steven_Smith
12-12-2002, 03:11 AM
<FORM>
<INPUT name="url" type="text" size="25">
<INPUT type="button" value="go" onClick=window.open(this.form.url.value)>
</FORM>

whammy
12-12-2002, 03:12 AM
That looks familiar (since apparently you were posting at the same time!), but you missed a couple of double quotes. ;)

Steven_Smith
12-12-2002, 03:15 AM
Funny, I took a look and you had posted to. We posted close to the same time.

Steve

:D :D :D :p

bacterozoid
12-12-2002, 03:17 AM
Heh, and yeah, I already surprise myself with some of my JavaScript knowledge and stuff...really a helpful site this is.

Antoniohawk
12-12-2002, 09:38 PM
THX everyone :thumbsup: