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 8618403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:05:55+00:00 2026-06-12T06:05:55+00:00

Got an odd situation – when I change the type of my button from

  • 0

Got an odd situation – when I change the “type” of my button from “button” to “image”, it stops working. I have done this change 100 times on my site, and I’ve never come across this issue before.

The relevant code looks like this:

//working
<input type="button" value="Back" onClick="window.location='some/page.php'" />

//not working
<input type="image" src="/link/to/image.png" onClick="window.location='some/page.php'" />

I’ve tested it by using the first code and checking it transfers me to the desired page. Then I’ve simply changed the type over and replaced the “value” with the relevant “src”. The button displays fine but when clicked, I simply land back on the page I was originally on.

What’s really bugging me is that the second snippet of code is working absolutely fine across the rest of my site. It’s just this page that it’s not working on.

Really confused – anyone encountered this before or got any suggestions?

  • 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-06-12T06:05:57+00:00Added an answer on June 12, 2026 at 6:05 am

    You have probably put the image map in a form. When you click it you are submitting the form.

    You should use a regular link instead. There is no need to use an image map or JavaScript here.

    <a href="some/page.php">
        <img src="/link/to/image.png" alt="appropriate alternative text goes here">
    </a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got this odd problem with jQuery. I'm trying to let the change of
I have odd problem: After starting server I got this error: undefined local variable
I got this odd error and I can't figure out where it came from:
I've got an odd situation. Basically, I have two custom bindings which are used
I have got odd problem while sending intent with parcelable object. This object has
I got this odd behaviour I launch tests from MS Test List Editor. And
I've got some very odd behaviour going on. I have the following JQuery: myElement.fadeOut(100);
This will seem like an odd problem to have. I've got this bit of
I've got an odd situation with a text box and an autocomplete setup on
I've got a rather odd situation which is bound to something breathtakingly obvious, but

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.