Cita:
Iniciado por elainemarley85
Te refieres a esto? [URL="http://www.w3schools.com/jsref/met_doc_getelementbyid.asp"]http://www.w3schools.com/jsref/met_doc_getelementbyid.asp[/URL]
No se que pasa que no sale bien el enlace :S
Te copio:
Código Javascript
:
Ver original<html>
<head>
<script type="text/javascript">
function getValue()
{
var x=document.getElementById("myHeader");
alert(x.innerHTML);
}
</script>
</head>
<body>
<h1 id="myHeader" onclick="getValue()">Click me!</h1>
</body>
</html>
no , me refiero a las url que cargan del tipo
http://www.google.co.ve/#q=busqueda