You need to sign in to do that
Don't have an account?

apex:outputlink refreshing page on click. how do I stop this?
Hello,
I am using apex:outputLink on a vf page to open a new window - but it is refreshing my original page upon click. Is there a way to stop this? Here is my link.
I am using apex:outputLink on a vf page to open a new window - but it is refreshing my original page upon click. Is there a way to stop this? Here is my link.
<apex:outputLink onclick="window.open('AllSpotsMoreDetails?id={!spotObj.Id}', 'newwindow', 'width=800, height=900')"> More Details</apex:outputLink> Thanks, John
<apex:outputLink onclick="window.open('AllSpotsMoreDetails?id={!spotObj.Id}', 'newwindow', 'width=800, height=900');return false;"> More Details</apex:outputLink>
OR
<apex:commandLink onclick="window.open('AllSpotsMoreDetails?id={!spotObj.Id}', 'newwindow', 'width=800, height=900');return false;" value="More Details" rerender="dummy"/>
All Answers
<apex:outputLink onclick="window.open('AllSpotsMoreDetails?id={!spotObj.Id}', 'newwindow', 'width=800, height=900');return false;"> More Details</apex:outputLink>
OR
<apex:commandLink onclick="window.open('AllSpotsMoreDetails?id={!spotObj.Id}', 'newwindow', 'width=800, height=900');return false;" value="More Details" rerender="dummy"/>
I appreciate it.
John