Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. download doc or open pdf file in brower

download doc or open pdf file in brower

Scheduled Pinned Locked Moved ASP.NET
javascript
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pankaj Saha
    wrote on last edited by
    #1

    Hi, I have to download a doc file and show the pdf file in the browser. For that I have used the following code in JavaScript of the button click

    window.open(url, 'Download', 'height=1,width=1,top=0,left=-1000');

    where url represent the path of the file (http://localhost/website/filename.doc).I do not want to show the popup window, for that I have used left=-1000, but it does not effect. Do you have any idea how I can hide that popup window :confused:

    Pankaj

    P 1 Reply Last reply
    0
    • P Pankaj Saha

      Hi, I have to download a doc file and show the pdf file in the browser. For that I have used the following code in JavaScript of the button click

      window.open(url, 'Download', 'height=1,width=1,top=0,left=-1000');

      where url represent the path of the file (http://localhost/website/filename.doc).I do not want to show the popup window, for that I have used left=-1000, but it does not effect. Do you have any idea how I can hide that popup window :confused:

      Pankaj

      P Offline
      P Offline
      Pankaj Saha
      wrote on last edited by
      #2

      Does anyone have the solution :confused:

      Pankaj

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups