Example code using the iframe element in the VUE component

This article describes sample code using the IFRAME element in the VUE component. Share it to everyone, as follows:

Requires hyperlink in the VUE component in this page, the address bar does not change Method:

 GOBACK       Copy code  The code is as follows:   
However, HTML5 has a new Dialog element for dialog.

Get iframe content:

VAR iframe = document.getlementByid (“iframe1”); Var Iwindow = iframe.contentWindow; var idoc = iWindow.document; console.log (“Window”, iWindow); // Gets the IFRAME’s Window Object Console.log (“Document”, IDoc); // Get iframe’s Document Console.log (“HTML”, idoc.documentelement; // Gets the IFRAME HTML Console.log (“Head”, Idoc.Head); // Get Head Console.log (“Body”, IDOC.Body); // Get body

ie 1 removes the scroll bar, 2 set a wide high

VAR iWindow = iframe.contentWindow; var idoc = iWindow.Document; iframe.Height = idoc.body.offsetHeight;

  Example:  
Copy code

The code is as follows:

 The above is all of this article Content, I hope to help everyone, and I hope everyone will support Tumi Clouds.                      
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment