/    Sign up×
Community /Pin to ProfileBookmark

Link inside input text field

Is there a way with javascript I can make the content inside input text field a link? If yes can anyone direct me to that script?

Thank you

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@LinkeTSep 01.2010 — if you place a link insed an input ... it looks like a button ... so you cann use a button?!

<form action="url"><button type="submit">link-text</button></form> ... thats all you need-.-
Copy linkTweet thisAlerts:
@OfekmeisterSep 01.2010 — [CODE]<html>


<head>

<title></title>

</head>

<body>

<form>
This: <input type="text" onclick="location.replace('http://www.google.com/');" />
</form>

</body


</html>[/CODE]
×

Success!

Help @oasmat 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...