Peter T
Posts: 3
Joined: 2013-04-03
|
when I inject script to open popup window in IE, an error message appears "internet explorer has modified this page to help prevent cross-site scripting". Is there an option where I can prevent this error and enable cross-site scripting? |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Peter,
Do you inject the javascript via the IHTMLScriptElement object as shown below?
mshtml.IHTMLScriptElement scriptObject =
(mshtml.IHTMLScriptElement)HTMLDocument.createElement("script");
scriptObject.type = @"text/javascript";
scriptObject.text = scriptText;
parentElement.appendChild((mshtml.IHTMLDOMNode)scriptObject); |
|