/    Sign up×
Community /Pin to ProfileBookmark

How to make a form value be a link

Consider this line:

if (t2==1) document.form1.timer.value=”GO!”;

How can I make the above value into a link, instead of “GO!” ?

This script prints values from 9 to 2, and when it gets to 1 it
prints GO!, instead of 1. I would like to turn the GO! into a link.

Thanks
Stephen Carr

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@bokehOct 30.2005 — Post the rest
Copy linkTweet thisAlerts:
@stc60authorOct 30.2005 — I thought it would be something simple.

It's part of a whole bunch of scripts, tied to a

traffic exchange timer.

Here is the whole function timer:

function timer()

{

if (Stop=="no"){

if (t2>=9) document.form1.timer.value=" ";

else {//this.focus();

document.form1.timer.value=" ";}

document.form1.timer.value+=t2;

if (t2==1) document.form1.timer.value="GO!";

if (t2==1) pause();

if(t2>0) {setTimeout('timer()',1000);t2--;}

else play();

}

here is the input line:

<input type="text" name="timer" size="4" class="timer" >
×

Success!

Help @stc60 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...