xhtml form with cancel button redirect

Posted on 2008-11-05
Last Modified: 2008-11-05
Hi Everyone:

Got this code on my cancel button to help it redirect in a xhtml 1.0 transitional document.

No errors, but no redirects. Any thoughts?

<input type="reset" name="btnCancel" id="btnCancel" value="Cancel" tabindex="17" class="btn-green" onclick="window.location" url="'index.html/'"/>
Question by:Midani
    1 Comment
    LVL 86

    Accepted Solution

    That should be the following:
    <input type="reset" name="btnCancel" id="btnCancel" value="Cancel" tabindex="17" class="btn-green" onclick="window.location='index.html/'"/>

    Open in new window


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    734 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

    22 Experts available now in Live!

    Get 1:1 Help Now