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
SamirKhanSamirKhan 

type error : window.open is not a function

I have written a script to open a page i new tab on click of a command button.But I get the following error : window.open is not a function()

i have not created any variable named "Open" which may have over written the open() function.

My script is like this
 


My command buton is :


 
Subhani_SFDCSubhani_SFDC
Hey Samir Khan,

We havn't see any script in your message. Can you post it again to have a look from our side.

Thanks, Subhani
Amit Chaudhary 8Amit Chaudhary 8


Hi 

Option 1:- you Can try output link like below :-
 Click here 

Option 2:- 

Button you can try like below :-

Example 1:-


Example 2:-