I recently moved my macbook off the desk onto a stand as I use it in clamshell mode. I have only done this today, but since then when I touched the laptop I got a static shock. Why did I get this and should the laptop not be kept on the floor?
Are you truly experiencing static electricity where there's an short electrical arc through the air as you near the metal, or are you feeling more of a tingling once you're in contact the the laptop?
The latter is often confused with the former, and thus is the problem for which I suggested a solution. As to what the cord does - it provides a grounded connection to the charger (engages the round metal disc), and thus the system chassis will be grounded.
With an ungrounded connection (two prong to hot & neutral), the chassis can be at whatever voltage the Neutral plug may be at in your wall socket, which can be perceptibly more than 0V (ground). When someone touches their ungrounded macbook and a grounded object, they may feel a tingling sensation often (incorrectly) described as "static".
If instead you're really getting the jumping arc static electricity discharge...
... touch something grounded before touching the macbook.
There was a definite tingling when I touched the laptop.
I’ve had a static issue in my room for some time. For example when I get up out of my chair, the speakers will often pop as I stand up. Also if I stand up and touch the bottom of my chair with my foot I will get static then also. Any idea why this is happening?
The grounded cord I referenced should address the tingling sensation.
As for household static electricity build up that's a more general topic, I'd suggest starting with this and do some internet searches for other ways to address the matter. Assuming you're in the northern hemisphere the matter should solve itself shortly as we move into spring/summer. 4 Ways to Remove Static Electricity - wikiHow
There was a definite tingling when I touched the laptop.
I’ve had a static issue in my room for some time. For example when I get up out of my chair, the speakers will often pop as I stand up. Also if I stand up and touch the bottom of my chair with my foot I will get static then also. Any idea why this is happening?