In a frame because it set 'x-frame-options' to 'sameorigin'. Javascript
Answers
Answered by
0
in a frame because it set 'X-Frame-Options' to 'sameorigin'.
document.getElementById("go_search").onclick = function() { myFunction(); }; function myFunction() { var patent_content = document.getElementById("patent_content").value; var html_content = '<iframe crossorigin="anonymous" src="https://patents.google.com/?q=' + patent_content + '&embedded=true" height="200" width="300"></iframe>'; document.getElementById("result").innerHTML = html_content; }<h2>Google Patent Search</h2> <form> <p>Paste your content</p> <textarea id="patent_content"></textarea> <input type="button" id="go_search" value="go" /> </form> <div id="result"> </div
document.getElementById("go_search").onclick = function() { myFunction(); }; function myFunction() { var patent_content = document.getElementById("patent_content").value; var html_content = '<iframe crossorigin="anonymous" src="https://patents.google.com/?q=' + patent_content + '&embedded=true" height="200" width="300"></iframe>'; document.getElementById("result").innerHTML = html_content; }<h2>Google Patent Search</h2> <form> <p>Paste your content</p> <textarea id="patent_content"></textarea> <input type="button" id="go_search" value="go" /> </form> <div id="result"> </div
Similar questions