Viewing 2 replies - 1 through 2 (of 2 total)
  • this is what i usually do to get doc in a new tab …

    step 1: create –> viewer.php and paste the following code

    <html>
    <title>
    Doc Downloader
    </title>
    <body>
    	<center><b><a href="<?php echo $_GET["url"]?>">Download This Document </a></center><b>
    
    	<iframe src="https://docs.google.com/viewer?url=<?php echo $_GET["url"]?>&hl=&embedded=true" class="gde-frame" style="width:100%; height:110%; border: none;" scrolling="no"></iframe>
    
    </body>
    </html>

    Step 2: place the following code where ever you want

    <a href="https://www.YOURWEBSITE.com/PATHtoFILE/viewer.php?url=https://www.YOURWEBSITE/filename.pdf"  target="_blank">Click here to view </a>

    Hope this helps you

    muhammad,

    The full screen viewer can open in a new tab without any special code. Is this not what you want?

    Kevin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Open it New Tab’ is closed to new replies.