Jump to content

I need a script


Recommended Posts

Since I'm not a programmer, I would like to if someone could give me a script for the following application:

Colors:

black means label/text

red means textbox

blue means button

www.site.com/dir/client_ v3.0.swf Navigate.

so when i click "Navigate" button, it navigates me to the following url: www.site.com/dir/client_textboxversion.swf

Thanks!

Link to comment
Share on other sites


This html code should help you you just need to adapt to your needs.

<HTML>
<HEAD>

<script LANGUAGE="JavaScript">

function go() {
var url=document.Navigate.titi.value;
document.location.href="http://www.google.Fr/search?q=" + url ;
}


</SCRIPT>


</HEAD>
<BODY bgcolor="#FFFFFF">
<FORM name="Navigate">

Text: <input type=text name="titi" >

<INPUT type="button" name="Navigate" value="Navigate" onClick="go();">

</FORM>

</BODY>
</HTML>

Edited by allen2
Link to comment
Share on other sites

This html code should help you you just need to adapt to your needs.

<HTML>
<HEAD>

<script LANGUAGE="JavaScript">

function go() {
var url=document.Navigate.titi.value;
document.location.href="http://www.google.Fr/search?q=" + url ;
}


</SCRIPT>


</HEAD>
<BODY bgcolor="#FFFFFF">
<FORM name="Navigate">

Text: <input type=text name="titi" >

<INPUT type="button" name="Navigate" value="Navigate" onClick="go();">

</FORM>

</BODY>
</HTML>

Thanks! I've done it. It works. :thumbup

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...