Navigating to another page using button



I want to navigate to another page using button. I used follwing code:
var frames = require ("tns-core-modules/ui/frame");
function onTap (){ frames. topmost.navigate("about/about"); }
exports.onTap = onTap;
But not working. Plz help.


just cross check this it might help you…

                                moduleName: "views/home/invoice/create/create-invoice",
                                context: contactDetails._id,
                                animated: true,
                                transition: {
                                    name: "slide",
                                    duration: 500,
                                    curve: "easeOut"