Window name attribute

Definition and usage

name Set or return the name of the window attribute.

Tip:The window does not need to have a name.

Instance

Example 1

Get window name:

let name = window.name;

Try it yourself

Example 2

Set window name:

window.name = "myWindowName";

Try it yourself

Example 3

Open a frame with a special name:

const otherWindow = window.open();
otherWindow.name = "Butterfly";

Try it yourself

Syntax

return name attribute:

window.name

set name attribute:

window.name = winName

প্রতিমান

প্রতিমান বর্ণনা
winName উইন্ডোর নাম

ফলাফল

ধরন বর্ণনা
শব্দচিহ্ন

উইন্ডোর নাম

যদি উইন্ডো নাম থাকে না, তবে view

ব্রাউজার সমর্থন

সমস্ত ব্রাউজারগুলি সমর্থন করে window.name

Chrome IE Edge Firefox Safari Opera
Chrome IE Edge Firefox Safari Opera
সমর্থন সমর্থন সমর্থন সমর্থন সমর্থন সমর্থন