Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 22nd, 2010, 09:27 AM
Registered User
 
Join Date: Mar 2010
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default use an anchor to submit, or set image for submit button

I am trying to be consistant in display but I wrote code using a submit button where the rest of the site uses an anchor & href with an image.

old code
<a href="#" onclick="javascript:window.frames('Cnt').ValidateF orm();"><img src="../images/go.gif" border="0"></a>

new code
<input type="submit" value="Go" />
 
Old March 22nd, 2010, 09:40 AM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

The following satisfies your purpose and also fits the look and feel of your site.

Code:
<input type="submit" value="Go" src="../images/go.gif"/>
The Following User Says Thank You to PeterPeiGuo For This Useful Post:
mikezx10 (March 22nd, 2010)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Make a image button as default submit button toshi ASP.NET 1.0 and 1.1 Basics 1 June 1st, 2006 05:25 AM
submit-button grstad Javascript How-To 1 May 25th, 2005 08:33 AM
multiple Image submit buttons set default to last sam HTML Code Clinic 2 June 30th, 2004 02:33 PM
submit image button without javascript vixy Javascript 7 September 8th, 2003 11:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.