gdata.io.handleScriptLoaded({"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$georss":"http://www.georss.org/georss","xmlns$thr":"http://purl.org/syndication/thread/1.0","xmlns$blogger":"http://schemas.google.com/blogger/2008","id":{"$t":"tag:blogger.com,1999:blog-3275735"},"updated":{"$t":"2023-07-27T06:18:49.198-05:00"},"category":[{"term":"Windows"},{"term":"Website"},{"term":"webMethods"}],"title":{"type":"text","$t":"VismiT"},"subtitle":{"type":"html","$t":"means Amaze (विस्मित)."},"link":[{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"https://www.blogger.com/feeds/3275735/posts/default/-/Website?alt\u003djson-in-script\u0026max-results\u003d6"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/3275735/posts/default/-/Website?alt\u003djson-in-script\u0026max-results\u003d6"},{"rel":"alternate","type":"text/html","href":"http://vismit.khapre.org/search/label/Website"},{"rel":"hub","href":"http://pubsubhubbub.appspot.com/"}],"author":[{"name":{"$t":"Vishal Khapre"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"generator":{"version":"7.00","uri":"https://www.blogger.com","$t":"Blogger"},"openSearch$totalResults":{"$t":"1"},"openSearch$startIndex":{"$t":"1"},"openSearch$itemsPerPage":{"$t":"6"},"entry":[{"id":{"$t":"tag:blogger.com,1999:blog-3275735.post-3306665318350986061"},"published":{"$t":"2007-07-06T23:16:00.000-05:00"},"updated":{"$t":"2007-07-06T23:43:02.777-05:00"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"Website"}],"title":{"type":"text","$t":"Disable drag and Text selection in Firefox"},"content":{"type":"html","$t":"\u003cp\u003eFirefox is known to support most of the W3C Dom standards and IE is usually to support most non standard or I would say \"IE Standard\". Anyways, I still like IE because my website is viewed by mostly IE users, almost over 85%. \u003c/p\u003e\n\u003cp\u003eI had seen some people copying text from website, so I wanted to implement no drag and copy text from my website. Here is what I added to the body tag of each HTML rendered page on my site. (I know there are other ways to copy. :( )\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003e\u003cspan style\u003d\"color: rgb(255,0,0)\"\u003eonmousedown\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u003d\"javascript:clickTrap();\"\u003c/span\u003e \u003cspan style\u003d\"color: rgb(255,0,0)\"\u003eondragstart\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u003d\"return false\"\u003c/span\u003e \u003cspan style\u003d\"color: rgb(255,0,0)\"\u003eondblclick\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u003d\"return false\"\u003c/span\u003e \u003cspan style\u003d\"color: rgb(255,0,0)\"\u003eonselectstart\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u003d\"return false\"\u003c/span\u003e \u003c/p\u003e\u003c/blockquote\u003e\n\u003cp\u003eThis stopped drag and text selection for every IE visitor on my site. Easy and simple technique allowed me to achieve what I wanted. Still there were about 15% \"Standard Browser\" based non standard users. They could drag and select text from my site. Searching paid off after a long time. Mozilla based browsers need to you to create a javascript event handler routine to stop the drop or use this non-standard, browser specific tags. Here is what I did. You can leave them in your CSS file because IE just ignores them and Firefox will block the drag. \u003c/p\u003e\n\u003cblockquote\u003e\u003cpre class\u003d\"code\"\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u0026lt;\u003c/span\u003e\u003cspan style\u003d\"color: rgb(128,0,0)\"\u003estyle\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u0026gt;\n\u003c/span\u003e    \u003cspan style\u003d\"color: rgb(128,0,0)\"\u003e.protectedText\u003c/span\u003e \n    {    \n        \u003cspan style\u003d\"color: rgb(255,0,0)\"\u003e-moz-user-focus\u003c/span\u003e: \u003cspan style\u003d\"color: rgb(0,0,255)\"\u003eignore\u003c/span\u003e;    \n        \u003cspan style\u003d\"color: rgb(255,0,0)\"\u003e-moz-user-input\u003c/span\u003e: \u003cspan style\u003d\"color: rgb(0,0,255)\"\u003edisabled\u003c/span\u003e;    \n        \u003cspan style\u003d\"color: rgb(255,0,0)\"\u003e-moz-user-select\u003c/span\u003e: \u003cspan style\u003d\"color: rgb(0,0,255)\"\u003enone\u003c/span\u003e;\n     }\n\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u0026lt;/\u003c/span\u003e\u003cspan style\u003d\"color: rgb(128,0,0)\"\u003estyle\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u0026gt;\n\u0026lt;\u003c/span\u003e\u003cspan style\u003d\"color: rgb(128,0,0)\"\u003einput\u003c/span\u003e \u003cspan style\u003d\"color: rgb(255,0,0)\"\u003eclass\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u003d\"protectedText\"\u003c/span\u003e \u003cspan style\u003d\"color: rgb(255,0,0)\"\u003etype\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u003d\"text\"\u003c/span\u003e \u003cspan style\u003d\"color: rgb(255,0,0)\"\u003evalue\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u003d\"Change this\"\u0026gt;\u003c/span\u003e \n\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u0026lt;\u003c/span\u003e\u003cspan style\u003d\"color: rgb(128,0,0)\"\u003espan\u003c/span\u003e \u003cspan style\u003d\"color: rgb(255,0,0)\"\u003eclass\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u003d\"protectedText\"\u0026gt;\u003c/span\u003esdaf\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u0026lt;/\u003c/span\u003e\u003cspan style\u003d\"color: rgb(128,0,0)\"\u003espan\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0,0,255)\"\u003e\u0026gt;\u003c/span\u003e\u003c/pre\u003e\u003c/blockquote\u003e\n\u003cp\u003eFind other such tags, that mught be useful for you.\u003cbr\u003e\u003ca href\u003d\"http://www.xulplanet.com/references/elemref/ref_StyleProperties.html\"\u003ehttp://www.xulplanet.com/references/elemref/ref_StyleProperties.html\u003c/a\u003e \u003c/p\u003e\u003ca href\u003d\"http://11011.net/software/vspaste\"\u003e\u003ca href\u003d\"http://11011.net/software/vspaste\"\u003e\u003c/a\u003e"},"link":[{"rel":"replies","type":"application/atom+xml","href":"http://vismit.khapre.org/feeds/3306665318350986061/comments/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https://www.blogger.com/comment.g?blogID\u003d3275735\u0026postID\u003d3306665318350986061","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https://www.blogger.com/feeds/3275735/posts/default/3306665318350986061"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/3275735/posts/default/3306665318350986061"},{"rel":"alternate","type":"text/html","href":"http://vismit.khapre.org/2007/07/disable-drag-and-text-selection-in.aspx","title":"Disable drag and Text selection in Firefox"}],"author":[{"name":{"$t":"Vishal Khapre"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"thr$total":{"$t":"0"}}]}});