Click here to Skip to main content
14,970,345 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.

Thanks & Regards.

<html xmlns="">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
@media print{
body {display:none;}
It's impossible. No browser will expose its settings to a web app. Neither JScript will support it.
Simply, you can't do that.

You cannot interact with Browser Settings from a Web App.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900