Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8344651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:26:22+00:00 2026-06-09T06:26:22+00:00

I am using google viewer api and I want to disable the copy paste

  • 0

I am using google viewer api and I want to disable the copy paste functionality within the frame.


example:

<iframe src="http://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T06:26:23+00:00Added an answer on June 9, 2026 at 6:26 am

    Here’s my solution (from my comment):

    One idea I’m thinking of is overlaying a transparent div on the iframe so you can’t interact with it at all.

    DEMO

    HTML

    <div id="container">
      <div id="overlay">
      </div>
      <iframe src="http://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true" frameborder="0"></iframe>
    </div>
    

    CSS

    #overlay {
      width:590px;
      height:500px;
      z-index: 1;
      background-color:rgba(255,255,0,0.1);
    }
    iframe {
      width:600px;
      height:500px;
    
    }
    #container {
      position: relative;
    }
    #overlay, iframe {
      position: absolute;
      top: 0;
      left: 0;
    }
    

    I made the overlay (yellow box) width 590px so you still have 10px for the scrollbar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the Google maps API (v2) to display a country overlay over a
I'm using prepend() and the result seems to be buggy. $('#element').prepend('<div><a href=http://google.com><a href=http://test.com>Test.com</a> -
I'm using google's docs viewer to show a pdf document in a html page
How to get coordinates using javascript Google Maps JavaScript API v3 of the center
I am using Google Doc Viewer to display local PDFs on our site (override
I am using the Google Maps API to code a campus map for my
I am trying to create a piechart dynamically by using Google Chart api. i
I'm trying to implement this: from https://docs.google.com/viewer?url=http://www.tinaja.com/glib/bezdist.pdf&pli=1 The following BASIC program uses the method
Edit: I am using domPDF 0.5.1, hosted http://code.google.com/p/dompdf/ I am using HTML table to
Using Google AppScript. How could I find the checked RadioButton in a group? If

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.