HtmlService generated script gadget: hyperlinks don't work -
i've created simple apps script gadget in google site, , generates output using htmlservice. in source file, there dirt simple hyperlink
<a href="http://www.google.com">link</a>
when click it, report in debug window:
the page @ https://sites.google.com/macros/s/akfycbzw0jd06fdrbz-kkjkmdvpkma_rznboxe0ix…u6ms841tc3c&bc=transparent&f=aclonica,sans-serif&tc=%23cccccc&lc=%23336699 displayed insecure content http://google.com/. exec:1
the page @ https://sites.google.com/macros/s/akfycbzw0jd06fdrbz-kkjkmdvpkma_rznboxe0ix…u6ms841tc3c&bc=transparent&f=aclonica,sans-serif&tc=%23cccccc&lc=%23336699 displayed insecure content http://www.google.com/. exec:1
refused display 'https://www.google.com/' in frame because set 'x-frame-options' 'sameorigin'. exec:1
any ideas how solve this?
what trying open google.com inside apps script gadget embedded in google site. error message suggests, x-frame-options
doesn't allow this. so, should add target attribute <a>
tag open in new or parent window
for example,
<a href="http://www.google.com" target="_parent">link</a>
or
<a href="http://www.google.com" target="_blank">link</a>
Comments
Post a Comment