Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Submit Button Coding

    Hi,
    I am giving following coding to my submit button in a html file. but nothing happning. Please help.

    <td><button onclick="window.location='d:\baby\rifa.pdf'">submit</button>
    </td>

    is there any syntax error?

  • #2
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    411
    Thanks
    2
    Thanked 32 Times in 32 Posts
    for a local file you need to use a file protocol, and you should full qualify the name of the window property. So:

    <td><button onclick="window.location.href='file:///d:/baby/rifa.pdf'">submit</button>

    Is more likely to work.

    Cd&
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • #3
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    7
    Thanks
    0
    Thanked 1 Time in 1 Post
    Give the windows path properly.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •