The requested page is not available for the requested platform. You are viewing the content for Default platform.

Extract Script (ASP.NET)

Extracts javascript code to an external file.

Availability

Available from the context menu or via shortcuts:

  • when the cursor is anywhere within the opening or closing <script> tag.

Examples

<%--aspx page--%>
<script language=javascript>
    function CreateBorder(){
        myimg.style.borderStyle = "double";
    }
    function DeleteBorder() {
        myimg.style.borderStyle = "none";
    }
</script>

Result:

//javascript file
function CreateBorder()
{
        myimg.style.borderStyle = "double";
}
function DeleteBorder()
{
        myimg.style.borderStyle = "none";
}

Screenshot

rsExtractScript