Robin Williams’ “Mork & Mindy” co-star Pam Dawber said the late actor would behave inappropriately toward her on the set of the 1970s sitcom, but she was never offended.

“I had the grossest things done to me by him,” Dawber has written in a soon-to-be-published biography of Williams, quotes from which were published by the Daily Mail. “I never took offense. I mean I was flashed, humped, bumped, grabbed. I think he probably did it to a lot of people … but it was so much fun.”

The biography, authored by New York Times journalist Dave Itzkoff, also features interviews with director Howard Storm and producer Garry Marshall, both of whom described sexually inappropriate behavior from Williams toward Dawber and other women on set.

“He’d be doing a paragraph and in the middle of it he would just turn and grab her ass,” Storm said. “Or grab a breast. And we’d start again. I’d say, ‘Robin, there’s nothing in the script that says you grab Pam’s ass.’ And he’d say: ‘Oh, OK.”’

“He would take all his clothes off, he would be standing there totally naked and she was trying to act. His aim in life was to make Pam Dawber blush,” added Marshall.

Dawber, who starred as Williams’ wife on the sitcom for four seasons, said she was unfazed by his actions, describing them as “playful.”

“If you put it on paper you would be appalled,” she said. “But somehow he had this guileless little thing that he would do — those sparkly eyes. He’d look at you, really playful, like a puppy, all of a sudden. And then he’d grab your tits and then run away. And somehow he could get away with it. It was the ’70s, after all.”

Williams took his own life in 2014, and the subsequent autopsy revealed that he struggled with a neurological condition called Lewy body disease (LBD) that fundamentally altered his personality and behavior — a condition his widow Susan Schneider Williams described as “chemical warfare in his brain.”

“Robin,” Itzkoff’s biography of the comedian, is set to be released on May 15, 2018.

Remembering Robin Williams: A Life and Career in Pictures (Photos)

Williams made his big screen debut in little-seen 1977 comedy "Can I Do It 'Till I Need Glasses?"

Williams made several appearances doing sketches on 1977's "The Richard Pryor Show"

Quirky comedy series "Mork and Mindy" premiered in 1978 and put Williams on the map.

Christopher Reeve presented Williams with a People's Choice Award for Favorite Male Performer for "Mork and Mindy" in 1979.

"The World According to Garp," 1982

Williams was received his first Oscar nomination for his role in 1987's "Good Morning, Vietnam."

O Captain! My captain! Williams captivated a young audience by playing an unorthodox professor in 1989's "Dead Poets Society."

"There you are, Peter." Williams played a grown up Peter Pan returning to Neverland in 1991's "Hook."

Williams memorably voiced the Genie in Disney's animated classic "Aladdin," which came out in 1992.

"Mrs Doubtfire" was released in 1993 and remains one of Williams' most iconic roles

Williams played a wild man returning to civilization as a result of a board game gone very wrong in 1995's "Jumanji."

Williams played one half of a flamboyant gay couple opposite Nathan Lane in 1996's "The Birdcage."

Williams played President Dwight D. Eisenhower in Lee Daniels' "The Butler" in 2013.

The last Williams film to be released while he was alive was 2014's "The Angriest Man in Brooklyn," which co-starred Mila Kunis.

"Night at the Museum: Secret of the Tomb" was the last studio film Williams had completed prior to his death. He posted this photo with his stand-in and stunt double in May.

The last photo Williams ever posted to social media was this #tbt featuring him with his daughter on July 31: "Happy Birthday to Ms. Zelda Rae Williams! Quarter of a century old today but always my baby girl. Happy Birthday @zeldawilliams Love you!"

1 of 25

The actor, who died in 2014, made his acting debut in a little-seen 1977 comedy “Can I Do It ‘Till I Need Glasses?”