dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: How to embed a document if press a link

  1. #1
    Join Date
    Feb 2013
    Posts
    5

    How to embed a document if press a link

    How can I do something like show an embed document if a link is press.

    The logic would be something like:




    IF LinkPress then

    <embed src="\Document.pdf" width="720" height="500" >



    Being The link something like:

    <a href="">Link<a/>

    Thanks much

  2. #2
    Join Date
    Feb 2013
    Posts
    5
    Ok,

    I have the following:

    <p>Link</p>

    <script>
    $("p").click(function () {
    $(this).showembed();
    });
    </script>


    Now, how can I do to tell when I press "Link" show the following document. "document.pdf"

    Something like:

    <p (\document.pdf)>Link</p>

    <script>
    var document
    $("p").click(function () {
    $(this).showembed(document,);
    });
    </script>

    So when I press the "Link" the document.pdf shows embed

    Thanks so much

  3. #3
    Join Date
    Jul 2013
    Posts
    9
    Use html button and javascript onclick event to call the jqueru function.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles