I am having a script
<script src="/_layouts/SP.js" type="text/ecmascript"></script>
<script type="text/javascript">
function ViewItem()
{
this function calls sucess function or failure function }
function success() {
}
function failed(sender, args) {
}
</script>
This script has to call sp.js which i refered in html page. I need to write this script in seperate file and call this function viewitem from my html page
typeattributes.