Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to create button in pure JavaScript?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #177673
    web_editor
    Participant

    Hi, how to create button in pure JavaScript? I’m not really a programmer. Please help me. Thanks

    Here’s the html tag, that I want the button to be appear/display

    <div class="activityHeaderPanel">

    Note: I don’t have an access to edit an entire html file.

    #177844
    web_editor
    Participant

    How can I add that in the code below? If the user click the button, there’s a confirmation box, ask a question and when the user click ok, there will be a popWindow open

    if (confirm("Does the client has new address?") == true) {
                        popupWindow = window.open('/NewAddress.htm', "NewAddress", windowFeatures);
                        popupWindow.focus();
                    } else {
                        newAddress = "";
                    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.