function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mark GallagherMark Gallagher 

Opening Lightning Component with JavaScript

I want to know if I can open an lightning component through a button on a visualforce page.
Each button corresponds to a different component that I want to pop up I was wondering if I could write javascript to do this. If so what would that look like? I've never written javascript before.

<--- Visual Force Page --->
<apex:page standardController="Leverage__c">
    <apex:form >
        <h1>
            Support Services
        </h1>
        <apex:pageBlock>
            <apex:pageBlockButtons>
                <apex:commandButton value="Batman" onclick=""/>
                <apex:commandButton value="Superman" onclick=""/>
                <apex:commandButton value="Wonder Woman" onclick=""/>
                <apex:commandButton value="Flash" onclick=""/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
        
    </apex:form>
</apex:page>