...

View Full Version : ------| QUICK HELP: Textbox onclick redirect to another page |--------



Vernk
07-04-2012, 12:34 AM
So Basically I want to do this

<input type="text" onclick="Redirect to another page" class="searchfeild" />
How can I do this?

Thanks.

Old Pedant
07-04-2012, 02:13 AM
<anytag onclick="location.href='http://anysite.com/anyfolder/anyfile.xxx';" />

If the page is on the same web site as the tag, then simplify it to


<anytag onclick="location.href='/anyfolder/anyfile.xxx';" />

If the page is on the same web site and in the same folder as the tag, then simplify it to


<anytag onclick="location.href='anyfile.xxx';" />

And variations on the above.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum