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
Waseem AkramWaseem Akram 

onclick java script Error

Hi Guys i am facing this below error while clicking on page reference link which i have created.

Error is :  A problem with the OnClick JavaScript for this button or link was encountered: missing ) after argument list

I wrote this code on pagereference link :  parent.location.replace("https://ap2.salesforce.com/apex/pageReference?id={!Account.Id}";

is this correct..if wrong plz suggest me
BM 5BM 5
Please try the below code 
parent.location.replace("https://ap2.salesforce.com/apex/pageReference?id={!Account.Id}");
Waseem AkramWaseem Akram
Thanks a Lot BM...It worked.