× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I wouldn't use the center tag. It was deprecated in HTML 4.01 and is not
supported in XHTML 1.0. Definitely go the CSS approach. It's a little
tougher to wrap you head around at first, but it makes it MUCH better to
deal with later.

--
James R. Perkins
http://twitter.com/the_jamezp


On Mon, Nov 16, 2009 at 07:23, Kelly Cookson <KCookson@xxxxxxxxxxxx> wrote:

Here's a way to do it:

<center>
<form action="accepted.html">
<input type="button" value="Thing One" onclick="self.close()"></input>
<input type="button" value="Thing Two" name="B2"></input>
</form>
</center>

You can use the center tag to center your buttons. No need for CSS
unless you really want to use it.

If you want the second button to do something, like take you to another
page, you should put it inside a form. The action of the form says which
page to open (or server-side script to run) when the user clicks the
button.

If you want to know more, check out the W3Schools tutorials on HTML and
CSS. They are great references to get started:

http://www.w3schools.com/html/default.asp
http://www.w3schools.com/css/default.asp

Kelly


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Tom Deskevich
Sent: Monday, November 16, 2009 8:59 AM
To: 'Web Enabling the AS400 / iSeries'
Subject: [WEB400] Easiest question ever posted?

All I want to do is put 2 buttons on the bottom of an html page and have
them centered, and also have them do the action that I request. After
hours
of reading and goggling I found that using absolute positioning was the
way
to go. But I cannot get that to work. I tried putting the buttons inside
of
a form, and then outside of a form. Here is the current version, with no
positioning specified, outside of a form.

<p>
<input type="button" value="CANCEL REGISTRATION AND RETURN" name="B1"
onsubmit=window.close()> (does not close the window)
<input type="button" value="I AGREE WITH THE ABOVE TERMS AND CONDITIONS
-
SUBMIT" name="B2"></p>

I would like to have some of my natural color left in my hair before I
turn
50 next month. Please help.

BTW, if you want your button to play music, spin and dance, you can find
tons of help out there.

Thanks,

Tom Deskevich




--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.

--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.