Skip to content

Instantly share code, notes, and snippets.

@edinsoncs
Created December 16, 2015 17:56
Show Gist options
  • Save edinsoncs/6c7d732637528ce96e1c to your computer and use it in GitHub Desktop.
Save edinsoncs/6c7d732637528ce96e1c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Ancla en native javascript</title>
</head>
<body>
<script>
function foo(string){
var element = string;
var ancla = element.anchor("ancla-hipper-hipper");
document.write(ancla);
}
foo('Soy el texto string')
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment