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

javascript and variable url . . .

I've added this rating widget to my Visualforce detail page, and it requires a permalink to work correctly.

<script language='JavaScript'>
    var OutbrainPermaLink='ENTER PERMALINK HERE';
    var OB_demoMode = false;
    var OB_langJS ='';
    if ( typeof(OB_Script)!='undefined' )
    else {
        var OB_Script = true;
        var str = '<script src="" type="text/javascript"><\/script>';

 I've set the override on View for my list view page so that it appends the correct ID to the URL of my detail page when a link is clicked.

My question is how can I make the javascript above use the unique URL for each page rather than using one permalink?

Thanks for any tips.