How to open a PDF document in new window?

Discussion in 'Javascript' started by mistral, Jul 9, 2008.

  1. mistral

    mistral Guest

    I am looking correct way opening PDF documents in new window.

    <a href="http://www.hyperlinkcode.com/document.pdf"><img src="/images/
    thumbnail.jpg" border="0"></a>

    Can we set dimensions of that window, and align that window in right
    place?

    Any help will appreciated.
     
    mistral, Jul 9, 2008
    #1
    1. Advertisements

  2. mistral

    Erwin Moller Guest

    mistral schreef:
    > I am looking correct way opening PDF documents in new window.
    >
    > <a href="http://www.hyperlinkcode.com/document.pdf"><img src="/images/
    > thumbnail.jpg" border="0"></a>
    >
    > Can we set dimensions of that window, and align that window in right
    > place?


    "That window"?

    You code will open in the same window where the hyperlink is.
    If you need a fresh window (possibly with certain dimensions of your
    choice), you need to use:
    window.open();

    Google it up.

    Regards,
    Erwin Moller

    >
    > Any help will appreciated.
     
    Erwin Moller, Jul 9, 2008
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kim

    Open .pdf in new window

    Kim, Nov 18, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    2,356
  2. Daniel Geisenhoff
    Replies:
    1
    Views:
    6,360
    Steven Cheng[MSFT]
    Apr 16, 2004
  3. Replies:
    1
    Views:
    5,583
    Norman Yuan
    Jan 10, 2006
  4. =?Utf-8?B?UGVkcm8=?=

    Open a PDF in a new window?

    =?Utf-8?B?UGVkcm8=?=, Aug 24, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    7,349
    Patrice
    Aug 24, 2007
  5. Gordon
    Replies:
    3
    Views:
    541
    Steven Burn
    Apr 16, 2004
  6. PC HUA
    Replies:
    2
    Views:
    664
    PC HUA
    May 19, 2004
  7. Replies:
    1
    Views:
    407
  8. mistral
    Replies:
    6
    Views:
    417
    Thomas 'PointedEars' Lahn
    Jul 13, 2008
Loading...