Created
May 24, 2015 16:10
-
-
Save Huluvu424242/ebde1e4fdb7fe4a4056d to your computer and use it in GitHub Desktop.
Ermittle Link Header aus aktueller Seite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link id="link1" rel="search" href="http://www.google.de"> | |
<script type='text/javascript'> | |
function showLinklist() { | |
alert('Gleich'); | |
alert(document.getElementById("link1").href); | |
//alert(document.head.link['link1'].href); | |
} | |
</script> | |
</head> | |
<body> | |
<h1>Testseite</h1> | |
<button onclick="showLinklist()">Try it</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment