window.open can’t attach params to a url ends with .html

  Kiến thức lập trình

while I’m using

window.open(‘/a.html?title=666’)

there is no title = 666 in the new window’s url

but

window.open(‘/a?title=666’)

works fine.

it’s really confused me.

by the way, I’m using node’s ‘serve’ npm package to test in localhost.

during the research of documents, it is supposed to be the same.

New contributor

user23626796 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT