WASHINGTON – More than 4 out of 5 Americans want to prepare now for rising seas and stronger storms from climate change, a new national survey says. But most are unwilling to keep spending money to restore and protect stricken beaches.

The poll by Stanford University, released Thursday, found that only 1 in 3 people favored the government spending millions to construct big sea walls, replenish beaches or pay people to leave the coast.

This was the first time a large national poll looked at how Americans feel about adapting to the changes brought on by global warming, said survey director Jon Krosnick, a professor of political science and psychology at Stanford.

The more indirect options that the majority preferred were making sure new buildings were stronger and reducing future coastal development. New building codes rated the highest, with 62 percent of those surveyed favoring it.

Three in 5 people want those who are directly affected by rising seas to pay for protection, rather than all taxpayers.

Krosnick said the low favorability of sea walls and sand replenishment “reflect the public’s fatalistic sense that it’s more realistic to just give up the beach than to try to save it when other storms in the future will just wash it away again.”

The nationally representative survey of 1,174 Americans conducted online by GfK Custom Research has a margin of error of plus or minus 4.9 percentage points.