Help with HTMLto link a button
Last Post 09/20/2013 9:59 PM by Donald. 2 Replies.
Author Messages
Donald
Nuke Ace
Nuke Ace
Posts:53


--
09/20/2013 8:48 PM
    Hi


    I have a class button that I need to link to another page when it is clicked. I have tried a couple of things but can't seem to make the link work correctly. Here is how I created the button.


    [button class="btn btn-info" type="button" style="width: 215px;"]Home[/button]


    What do I add to link it to another page on the web site?

    Thanks
    -DL


    Note: brackets substituted for < and > to keep this site from rendering a button as it did in the Preview.

    Joseph Craig
    DNN MVP
    Posts:11667


    --
    09/20/2013 9:20 PM
    You need to add a click event handler: onclick=

    An alternative is to code this as a simple hyperlink, and style it to look like a button.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Donald
    Nuke Ace
    Nuke Ace
    Posts:53


    --
    09/20/2013 9:59 PM
    That's it! When I tried it before I had too many arguments and was creating another button. Thanks for getting me on the right track.
    -DL


    ---