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

  • SEARCH
  • Home
  • 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 6722037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:24:00+00:00 2026-05-26T09:24:00+00:00

I want a new page to be opened when a button is pressed. Here

  • 0

I want a new page to be opened when a button is pressed. Here is my code so far:

<input name="newThread" type="button" value="New Discussion" onclick="window.open('Political/Thread/thread_insert.php')"/>

It fails, however, ..I think the path is incorrect, but I dont know why..cause it is the correct directory path…

  • 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-26T09:24:00+00:00Added an answer on May 26, 2026 at 9:24 am

    Your code is correct (valid and function), you problem is the your path.

    Remember that page location is the page inside the web server and relative to the current page location.

    So if your web server root is for example c:\wamp\www then the web address test/test.php will look for the real page of c:\wamp\www\test\test.php. However the same address encoded into a page already in a subdirectory will be relative unless it starts with /
    So from the page test/test.php in the above example the link to test/test.php will become /test/test/test.php (with a real path of c:\wamp\www\test\test\test.php)

    If you have copied the link from another page somewhere this is probably the problem

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to add a new tab page for every newly opened form. Example:
By default for creating content a new page is opened. I want to do
Problem: I store the page name I want opened in Silverlight in a database.
I'm new to ASP.NET and want to have an asp:content control for the page
I am new to web-design. I want to set the page-width so that it
I'm new to using SugarCRM. I want to have a users page that does
There are times when I want to test new code from the forums or
Here my story: I want something like the new facebook menu on the left
What i want is to open a page in a new tab but don't
Can we create a new MySQL database( not a table, I want a new

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.