xhtml form with cancel button redirect

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/'"/>
MidaniAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
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

0
All Courses

From novice to tech pro — start learning today.