
Originariamente inviata da
stoneweb
No, no...è corretto all'interno del body. Facciamo così, prova a usare questo inserendolo in un semplice file index.html e prova a visualizzarlo nel browser:
codice:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script> (function() { var cx = '002640533894473142299:t4ppc-osejq'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = 'https://cse.google.com/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })();</script><gcse:search></gcse:search>
</body>
</html>