www.webdeveloper.com
Results 1 to 5 of 5

Thread: Disable print,save options of a browser using javascript

  1. #1
    Join Date
    Dec 2008
    Posts
    4

    Question Disable print,save options of a browser using javascript

    Hi Friends!

    Greetings for the day!!!

    Am new to this forum!

    Can anyone help me out in this query? plss.!

    How to disable print,save options of a browser using javascript, when a pdf file is opened in that browser.


    Thanks & Regards.

  2. #2
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    You can't disable those options from JavaScript.
    Stephen

  3. #3
    Join Date
    Dec 2008
    Posts
    4
    Sir, Can u suggest me any other alternative to do so?

    what i want is while you open a pdf file in a browser, user should not hav access to save/print that pdf file frm tht browser. so i need to disable browser options(save/print...)how do i do it?

    Thanks & Ragards.

  4. #4
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    Those functions are controlled by browser settings. The browser owner can turn them on and off but there is no way for a web page to do so without using one of the many security holes that modern browsers have now blocked.
    Stephen

  5. #5
    Join Date
    Dec 2008
    Posts
    4
    Quote Originally Posted by felgall View Post
    Those functions are controlled by browser settings. The browser owner can turn them on and off but there is no way for a web page to do so without using one of the many security holes that modern browsers have now blocked.
    ok sir, i got it.
    Thank you for your reply.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles