Different buttons on the mobile end pop up pop-up windows with the same format, and the content format of pop-up windows is also the same, but how can pop-up windows be implemented with different contents?

  html5, question

At present, I only know how to pop up the page, but I don’t know how to reuse the format of the page, and I can easily modify the contents of the pop-up window and keep the contents of the pop-up window in the same set of formats.
I am a novice, I want to make a website that I hope to do as soon as possible. If the problem is too elementary, please don’t shoot me, be sure to shoot, please shoot gently. . .

Write a function and pass in the contents to be modified as parameters