Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Beginning JavaScript
|
BOOK: Beginning JavaScript
This is the forum to discuss the Wrox book Beginning JavaScript by Paul Wilton; ISBN: 9780764544057
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript 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 October 31st, 2003, 11:44 AM
Authorized User
 
Join Date: Oct 2003
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Default Show image instead of <INPUT TYPE=button

Phil
That worked great, Thanks alot.
Would you help me with one more thing. The js code to Reset also uses a button and I would also like to change that to an image. I have tried the code you provided for the Restart button but must be coding it wrong. Would you be so kind a to type this out for me?

Here is the code as it sits now:

questionHTML = questionHTML + "P"<INPUT=button " +
      "VALUE='Reset Stats' " +
      "onClick=\"window.top.fraTopFrame_ccna1.fraGlobalF unctions_ccna1.setCookie" +
      "('previousNoAsked', 0, '','1 Jan 1970')\" " +
      "NAME=buttonReset>"

Could you make this work so I could use an image instead of the old gray button?
I would really appreciate it!

Larry


__________________
Rudy
 
Old October 31st, 2003, 11:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Larry, see reply to this question on your original thread.





Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i restore <input type="hidden"> 's value ? yamunchien ASP.NET 1.0 and 1.1 Basics 4 March 18th, 2006 08:45 PM
input type="image" tgopal Javascript How-To 1 September 22nd, 2005 05:16 AM
input type="image" tgopal Javascript 1 September 22nd, 2005 05:15 AM
<INPUT type="file" (why does style not work) mat41 HTML Code Clinic 7 September 19th, 2004 02:50 AM
<input type="File"> - Specify File Type and Path gp_mk Classic ASP Basics 2 August 2nd, 2004 03:07 AM





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