![]() This includes the entire document in a single string of HTML. but better if you just use the body or the iframe tag directly and we are done. insert onload=”myFunction ()” on your iframe, body tag, or a parent element of the iframe. Absolutely yes you can hide iframe elements using plain js no need to use jquery for that. Is there a way to hide elements in iframe SRC page? Edit the Code below and paste to index.php/index/html.You may select and use the “Use Code Editor” to have a better view on code.Log in to cPanel and look under “File Manager”.Steps to mask your Domain Name/URL with an index. Changing your visibility to “hidden” will hide the link without influencing the page layout. This may cause other elements of your page to move if they define their position in reference to your link. A simple CTRL + U will view the source.īy changing the display feature to “none”, you will remove the link from the page layout. Uncheck the “Disable or replace context menus” option. How do I hide the source page of a Web page?įor example, in Firefox, go to Options -> Content and next to the “Enable JavaScript” check box, click Advanced. From that you remove all the line that contains the attachment filename= so the file will be load on the inside of the iframe. Now you can/must encrypt also the url parameter to avoid anyone download all your reports. You can use a generic handler to hide the actually file from location. How do I encrypt an iframe URL?ģ Answers. HTML’s DOM, or Document Object Model, lets you replace an iframe’s HTML code by giving JavaScript’s getElementById function access the “src” attribute. ![]() The iframe attribute “src” holds the Web address for the HTML code you want to display in a particular section of your Web page. referrer and – here you’ve got the main url! If your iframe is from another domain, (cross domain), the other answers are not going to help you… you will simply need to use this: var currentUrl = document. After encrypting it, you can just write a basic HTML page just putting into the tag once again the script to disable the right click, into the tag you code and hide everything just writing at top of the page. You need to set a password to decrypt it ….you choose the password.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |