Abrindo o Internet Explorer com tamanho da janela e texto determinados



$browser = new COM("InternetExplorer.Application");

$browser->navigate("about:blank");
$browser->Visible = true;
$browser->Width = 700;
$browser->height = 380;
$browser->resizable = false;

$browser->document->title = "Hello, PHP!";
$browser->document->body->innerhtml = '
<html>
<body>
Olá
</body>
</html> ';

$browser->document->all->title->style->csstext = "font: 26px Verdana; color: blue";
$browser->document->all->maintext->style->csstext = "font: 12px Verdana; color: #333333";
$browser->document->all->mytxt->focus();

$browser = null;





Comentários

Copyright © 2018 Anderson Bravo
www.andersonbravo.com.br
anderson@andersonbravo.com.br