CreatePage(pageid)

Does anyone know how to create a function called CreatePage(pageid). The page’s location will be : site/abcd.html#pageid .