/g/ - Technology

Board dedicated to discussions related to everyday Technology!

Going back to BasicsAs we discussed and shared earlier, I am going bac...
Social Media Crossposts Policy and Threads on /b/ Since anons bring up this issue repeatedly, let's ...
Update on Threads which were deleted between 12 DeAs you guys know that certain threads were randoml...
[View Noticeboard]
0/4000

BharatChan Disclaimer

Notice

Before proceeding, please read and understand the following:

1. BharatChan is a user-generated content platform. The site owners do not claim responsibility for posts made by users.

2. By accessing this website, you acknowledge that content may not be suitable for all audiences.

3. You must follow BharatChan’s community guidelines and rules. Failure to do so may result in a ban.

4. By using BharatChan users agree to the use of cookies, mostly for session related to user.

A poster on BharatChan must abide by the following rules:

Sitewide Rules
You must be 18 or older to post.
Sharing personal details or engaging in doxing is strictly prohibited.
Political discussions should be confined to /pol/.
Off-topic discussions, thread derailment, or spam may result in a ban and IP blacklist.
Pornographic content is strictly prohibited.
Any activity violating local laws is not allowed.
If you are not an Indian, you can only post in /int/. Or create and account and ask for approval to post in other boards.
Acknowledge

Anonymous

IN

TLFuXv

No.1483

quick question, i want to to open a dialog box or a form we can say where i have to input some info and then store it. now my question is, how do i make sure a form pops up when i click that button.

```

function addBookToLibrary(){

const inputBtn = document.querySelector("#inputBtn");

inputBtn.addEventListener("click", (e) => {

})

}

```

Anonymous

IN

TLFuXv

No.1484

i have forgotten a lot of it of dom handling as i havent been regular, any reference or documentation would be helpful too.

Anonymous

IN

OuBZJV

No.1486

>>1483(OP)

>using classes

>just property modification like display

>go through 'dialog' element in html see if it works for you - if it works you may not need lots of js code

Anonymous

IN

xPfQ0a

No.1487

>>1483(OP)

chutiya (edi) ha kya? Ek function ? Chatgpt tujhe pura project de dega. nikal laude.

क्षीर सार

IN

j4hZdl

No.1497

>>1487

bro is paranoid to even search stack overflow

bro wants answers!

ARYA

kLNdr+

No.1501

>>1483(OP)

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog#closing_a_dialog_with_a_required_form_input

Active Users in /g/: N/A