Results 1 to 3 of 3

Thread: another prob on pdf

  1. #1
    Join Date
    Sep 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default another prob on pdf

    i got a drop down which list down name of the pdf file...

    how can i popup the pdf file when the user select the pdf name from the drop down menu...

    can somebody help me...??

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Thumbs up

    HTML Code:
    <form name="testForm">
    <select name="menu" size="1" onChange="pop()">
    <!-- CHANGE THE BELOW URLS TO YOUR OWN-->
    <option value="c.pdf" selected>c.pdf</option>
    <option value="b.pdf">b.pdf</option>
    </select>
    <input type="button" name="test" value="Go!" onClick="pop()">
    </form>
    
    <script language="javascript">
    <!--
    function pop()
    {
    var selectedurl=document.testForm.menu.options[document.testForm.menu.selectedIndex].value
    win1=window.open(selectedurl)
    }
    //-->
    </script>
    check the above code which demonstrates what you mentioned in your posting.

    Plz change the path and name of the pdf files you want to list and according to that change the drop down menu.

  3. #3
    Join Date
    Sep 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    tq codeexploiter...the code was successful....tq...

Bookmarks

Posting Permissions

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