javascript - Disable editing of iframe -


i wanted "preview" thumbnail of every form created. wanted users can't edit iframe on thumbnail (somewhat appear image)

this preview code

<p>thumbnails</p> <div id="wrap"> <iframe id="frame" src="<?php echo site_url('form/testing'); ?>"></iframe> </div> 

is there way this? css or javascript?

what understand question want disable form inside in iframe. can it. 1. you can place full size div on form nobody can direcly access form css on form check demo

(you can place same div on ifrmae tag ) css of div is

layer { opacity: 0.01; } 
  1. you can disable user input , user select using css

body {

-webkit-user-select:none; -moz-user-input: disabled; -webkit-user-input:disabled; }

using jquery

jquery("input").attr("disabled", 'disabled'); 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -