Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6562867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:45:40+00:00 2026-05-25T13:45:40+00:00

I have a pre compiled form which i need to insert a button into

  • 0

I have a pre compiled form which i need to insert a button into after a specific field with and ID of addr_postcode can any one show me how to, using javascript, add a button after the field which when clicked takes the value of the field and launches a new window with the value as part of the url. for example:

../DIR/default.aspx?postcode=postcode here

Thanks a nice simple one I hope!

HTML

<TR>
<TD vAlign=top>
<SPAN id=_Captaddr_postcode class=VIEWBOXCAPTION>Post Code:</SPAN>
<BR>
<SPAN id=_Dataaddr_postcode class=VIEWBOX>
<INPUT id=addr_postcode class=EDIT name=addr_postcode maxLength=10 value=test size=15><INPUT name=_HIDDENaddr_postcode type=hidden>
</SPAN>
</TD>
</TR>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:45:40+00:00Added an answer on May 25, 2026 at 1:45 pm

    Try this:

        function makeButton() {
            var buttonDiv = document.getElementById("addr_postcode");
            var Button = document.createElement("input");
            Button.setAttribute("type", "button");
            Button.setAttribute("id", "ButtonClick");
            Button.setAttribute("value", "New button");
            Button.setAttribute("onclick", "btnClick(" + buttonDiv.value.toString() + ");");
            buttonDiv.appendChild(Button);
        }
    
        btnClick(URL) {
            window.open(URL,'','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET 4.0 web application which needs to be pre-compiled into a
I have a couple of pre-existing applications which I need to run in one
I have an HTML form which has a field with an ID of 'soln_c_links'
I have a .NET assembly DLL that is created on-the-fly from pre-compiled code in
I have a VS2008 Web Application project that is being pre-compiled without being updatable.
I have a Visual Studio C++ based program that uses pre-compiled headers ( stdafx.h
Have any other iPhone developers experienced this phenomenon? I can see his contributions in
I have been doing some work lately with a Pre-compiled .NET3.5 app so i
DotNetNuke is a large ASP.NET CMS which is mostly pre-compiled, as are most of
I have a pre-compiled ASP.NET website on staging environment. It's virtual root folder contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.