Was this page helpful?

Dynamic link on an image

    Table of contents
    No headers

    DekiScript supports XML literals which can be used to create dynamic HTML elements.

    var parent = page.parent;
    if(parent) { 
        <a href=(parent.uri)>
            <img src="/skins/common/images/nav-parent-docked.gif" />
        </a>
    }

    Here is the output:

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by