i have a visualforce page where most of front end code is in HTML / CSS / JS. We are calling controller methods using javascript remoting. Is there any option other than window.open('new_page','_parent'); to perform navigation to other page.


You should take a look at Creating Visualforce Pages That Work in Mobile and Desktop. Here is their basic example:

if( (typeof sforce != 'undefined') && (sforce != null) ) {
    // Salesforce1 navigation
else {
    // Set the window's URL using a Visualforce expression
    window.location.href = 
        '{!URLFOR($Action.Account.View, account.Id)}';

If you don't care about SalesForce1, you can just use the else portion.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.