How to append hyperlink to Body tag using jQuery?

Home » Uncategorized » How to append hyperlink to Body tag using jQuery?
Uncategorized No Comments

 How to append hyperlink to Body tag using jQuery?

<html>
<head>
    <title></title>
</head>
<body>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script>
        jQuery('<a>http://sourcecodehub.com/</a>').attr('href', 'http://www.sourcecodehub.com').appendTo('body');
    </script>
</body>
</html>

LEAVE A COMMENT