Text links for buttons

home page
std.css

The standard PayPal Button Factory output supplies you with a graphic button to click for add and view cart functions. Some people want text links instead of those buttons. It is really easy to do, but there are some caveats.

To use text links we have to replace this in the PayPal FORM...

    <input type="image" ...

with this (placed anywhere you want in the HTML)...

    <a href="javascript:document.forms.formname.submit();"> (words) </a>

    where "formname" is replaced by the name of the FORM.

Do a right-click, and <view source> to see what I did on this page. A most important feature is the ability to submit the FORM from outside the FORM limits, as is done on this page. It is also important to understand that submitting a FORM in this way prevents any onsubmit Event Handler from executing. And a MOST important thing is to realize that you may submit multiple FORMs at the same time (say a PayPal, AND a mailto FORM.)


[picture] Blah, blah. $10.00

Enter size -

Add     View

Image: XHTML 1.1 certified! Image: CSS2 certified! Image: Multi-user accessibility!

Contact me concerning this article at paypalhelper@aol.com. Mention "text links" in your note.

Individual help starting at $25.00 for simple JS solutions.