can't add google.com as src to an IFrame [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to show google.com in an iframe? Why some websites can't be added as source to my iframe I have this code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script> function changeIframe(newLocation){ document.getElementById("myIframe").src=newLocation; } </script> </head> <body onload=