Forum Discussion
oliwa66
Jan 18, 2023Copper Contributor
Adding custom javascript to sharepoint
Hi, i would like to create a webpart that pops up on a site at random location with something like "Congratz, you won!". I am absolutely new to sharepoint development, but i am very familiar with ja...
oliwa66
Jan 20, 2023Copper Contributor
ganeshsanap thanks, i'll take a look at modern script editor.
I already use the SPFx Application Framework, thats why i am asking if this is the way to go with loading the .js in that way as i mentioned.
ganeshsanap
Jan 20, 2023MVP
oliwa66 Yes, it is correct. If it is not working for you, try code given inside onInit() method in below links:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.