Hi Marc,
local loIE, lnRun
loIE = createobject("internetexplorer.application")
loie.navigate2("d:\f\mist\Dyn.htm")
loIE.Visible = .t.
wait window "Loading" timeout 2
? loIE.document.all.length
for lnRun = 0 to loIE.document.all.length-1
*-- zero based Collection
? loIE.document.all.item[m.lnRun].innerText
next
works fine for me with an existing file like
[!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"]
[html]
[head]
[SCRIPT LANGUAGE=javascript]
function txtwrt(mytxt){
document.designmode = "On";
document.write (mytxt);
}
[/SCRIPT]
[/head]
[body]
[script]
txtwrt("I am a script in the body")
[/script]
[p]Normal text.[/p]
[p]I am the next paragraph[/p]
[button type="BUTTON" name="Butt1" value="Valu" onclick='txtwrt("I am the click.")'][/button]
[/body]
[/html]
you will have to change the tag-delimieters back
<=[, >=],
HTH
thomas
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement