form links?

liunx

Guest
Hi,<br />
<br />
Can a form field also be a hyperlink?<br />
<br />
If not is there a way of creating a link that looks like a form field?<!--content-->Hmm, I never heard of this. Try echoecho.com - if its possible they will tell you how.<!--content-->Do a "Print Screen" of a field and make it an image and then make the image a link.<!--content-->the only way you can do this is if the that is the only form field on there. I think something like this will work, but you can't have people add sites in it. it is set to read only<br />
<br />
<form><br />
<input type=text name=link value="http://www.yoursite.com" readonly><br />
<input type=submit value=submit name=submit <br />
onClick="msgWindow=window.open('http://www.yoursite.com','','menubar=yes,status=yes,toolbar=yes,resizable=yes,scrollbars=yes,width=640,heig ht=480')"><br />
<br />
</form><!--content-->Originally posted by scoutt <br />
the only way you can do this is if the that is the only form field on there. I think something like this will work, but you can't have people add sites in it. it is set to read only<br />
<br />
<form><br />
<input type=text name=link value="http://www.yoursite.com" readonly><br />
<input type=submit value=submit name=submit <br />
onClick="msgWindow=window.open('http://www.yoursite.com','','menubar=yes,status=yes,toolbar=yes,resizable=yes,scrollbars=yes,width=640,heig ht=480')"><br />
<br />
</form><br />
<br />
<br />
Or of course you could just do that. :)<!--content-->:D<!--content--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br />
<br />
<html><br />
<head><br />
<title>Untitled</title><br />
</head><br />
<br />
<body><br />
<form><br />
<br><br><br><br />
<input type=text onClick="document.location='http://www.yahoo.com'"><br />
<br><br />
<input type=radio onClick="document.location='http://www.yahoo.com'"><br />
<br><br />
<input type=checkbox onClick="document.location='http://www.yahoo.com'"><br />
<br><br />
<select onClick="document.location='http://www.yahoo.com'"><br />
<option>hke</option><br />
</select><br />
<br><br />
<textarea cols=10 rows=10 onClick="document.location='http://www.yahoo.com'">wehnjdc</textarea><br />
</form><br />
</body><br />
</html><!--content-->
 
Back
Top