Hi please tell me which one is correct?
"when you click on this button a new window will open" or
"when you click on this button a new window will be opened"
English Language Learners Stack Exchange is a question and answer site for speakers of other languages learning English. It only takes a minute to sign up.Sign up to join this community
How about "this button opens a new window"? When writing instructions for software, it's important to keep things short, and to use simple cause and effect.
As far as the sentences you gave, they are equally correct. If you must use one, pick one, and make sure you use that form consistently throughout your writing.
when you click on this button a new window will open
when you click on this button a new window will be opened
Both are correct.
...a new window will open is simpler. The word "window" is the subject, and "opens" is used intransitively.
...a new window will be opened (a passive construction) is more complicated since an unidentified agent opens the window.
The passive formulation brings another process into the scenario. This may very well be the case; there may be a controller receiving the click and acting upon it; but the end-user (if this sentence is aimed at the end-user?) does not typically need to know what is going on "behind the scenes".