Comments in ActiveX control prevent JavaScript codes to be executed.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
guest7665

Comments in ActiveX control prevent JavaScript codes to be executed.

25 Jul 2021, 01:44

Is this a bug? Any workaround for this issue?

Windows 7, Internet Explorer 9

Code: Select all

html =
(join`r`n

<!DOCTYPE html>

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<input type="button" value="test" onclick='alert(JSON + " _ " + t + " _ " + Object.keys)'>

<script>

	//This comment line prevents the codes below to be executed

alert("w");

t = "ttt";

alert("f");

</script>

<br>123

)

	;clipboard := html

gui, add, ActiveX, w600 h400 vIE_ActiveX_Output, % "about:" html

	;gui, add, ActiveX, w600 h400 vIE_ActiveX_Output, shell.Explorer
	;IE_ActiveX_Output.Navigate("about:" html)

	;gui, add, ActiveX, w600 h400 vIE_ActiveX_Output, about:blank
	;IE_ActiveX_Output.document.write(html)

gui, show

return

guiclose(){
exitapp
}
Last edited by gregster on 25 Jul 2021, 03:37, edited 1 time in total.
Reason: Topic moved from 'Forum Issues'.
malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: Comments in ActiveX control prevent JavaScript codes to be executed.

25 Jul 2021, 08:33

Code: Select all

gui, add, ActiveX, w600 h400 vWB, about:blank
WB.Document.Write("<script>`n//comment`nalert(1);`n</script>")

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: TAC109 and 251 guests