how to access function of one page to another ?
i have a button in one page which when clicked performs specific tasks i have created a new page and i want to give link or i want same button which does same tasks i dont want to copy the whole code as it is on new page is it an other way where i can link that function ?