A html page with buttons

Posted on 2007-07-28
Last Modified: 2010-03-05

I need a HTML page which will have buttons on it and when clicked can take  me to some excel sheets.
I should be able to edit the text on the button as well as link the button to a excel sheet in the local machine.

Question by:bsharath
    LVL 32

    Expert Comment

    Hi are you looking for

    <FORM METHOD="LINK" ACTION="excel.xls">
    <INPUT TYPE="submit" VALUE="Push me!">

    This will generate a button with the text Push me! which opens an Excel document called excel.xls

    Hope this helps
    LVL 11

    Author Comment

    Any way you can put in 20 buttons and host the file for me on a shared site
    LVL 32

    Accepted Solution

    Hi bsharath

    If you want 20 buttons all you need is copy the code above and change the variables to suit your 20 documents. Unfortunately I don't provide hosting servcies myself, but you may want to have a look at the EE Webhosting section for some guidance on good ISPs and how to go about it.

    Not knowing what exact layout you need, designing a page will be difficult beyond html code, what name does this page need to have for your users to find it, does it sit within an existing www or does it need to link to another and so on. But assuming that you only have one page and that your Excel documents sit in a subfoldeer called xls, we call the page index.htm

    The code for index.htm would create a simple page, white background and 4 rows of 5 buttons:

    <p><FORM METHOD="LINK" ACTION="excel1.xls">
    <INPUT TYPE="submit" VALUE="Button 1">
    <FORM METHOD="LINK" ACTION="excel2.xls">
    <INPUT TYPE="submit" VALUE="Button 2">
    <FORM METHOD="LINK" ACTION="excel3.xls">
    <INPUT TYPE="submit" VALUE="Button 3">
    <FORM METHOD="LINK" ACTION="excel4.xls">
    <INPUT TYPE="submit" VALUE="Button 4">
    <FORM METHOD="LINK" ACTION="excel5.xls">
    <INPUT TYPE="submit" VALUE="Button 5">
    <FORM METHOD="LINK" ACTION="excel6.xls">
    <INPUT TYPE="submit" VALUE="Button 6">
    <FORM METHOD="LINK" ACTION="excel7.xls">
    <INPUT TYPE="submit" VALUE="Button 7">
    <FORM METHOD="LINK" ACTION="excel8.xls">
    <INPUT TYPE="submit" VALUE="Button 8">
    <FORM METHOD="LINK" ACTION="excel9.xls">
    <INPUT TYPE="submit" VALUE="Button 9">
    <FORM METHOD="LINK" ACTION="excel10.xls">
    <INPUT TYPE="submit" VALUE="Button 10">
    <p><FORM METHOD="LINK" ACTION="excel11.xls">
    <INPUT TYPE="submit" VALUE="Button 11">
    <FORM METHOD="LINK" ACTION="excel12.xls">
    <INPUT TYPE="submit" VALUE="Button 12">
    <FORM METHOD="LINK" ACTION="excel13.xls">
    <INPUT TYPE="submit" VALUE="Button 13">
    <FORM METHOD="LINK" ACTION="excel14.xls">
    <INPUT TYPE="submit" VALUE="Button 14">
    <FORM METHOD="LINK" ACTION="excel15.xls">
    <INPUT TYPE="submit" VALUE="Button 15">
    <p><FORM METHOD="LINK" ACTION="excel16.xls">
    <INPUT TYPE="submit" VALUE="Button 16">
    <FORM METHOD="LINK" ACTION="excel17.xls">
    <INPUT TYPE="submit" VALUE="Button 17">
    <FORM METHOD="LINK" ACTION="excel18.xls">
    <INPUT TYPE="submit" VALUE="Button 18">
    <FORM METHOD="LINK" ACTION="excel19.xls">
    <INPUT TYPE="submit" VALUE="Button 19">
    <FORM METHOD="LINK" ACTION="excel20.xls">
    <INPUT TYPE="submit" VALUE="Button 20">

    Obviously you can make this prettier with logos and tables, but as a basic page it'll suffice.

    hope this helps
    LVL 32

    Expert Comment

    thanks and good luck with your project.

    All the best

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
    The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
    Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now