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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:12:22+00:00 2026-06-10T03:12:22+00:00

I have an image inside a div tag so that on clicking this image,

  • 0

I have an image inside a div tag so that on clicking this image, javascript shows/hides another div tag each time this image is clicked.
This scripting is used in a Widget on WordPress, so it is present on every page of the website.

The problem is, the image inside this div tag doesn’t show.
I have right clicked the ‘no image’ icon and chosen ‘open image in new tab’ and the URL is saying:
www.DOMAIN.com/www.DOMAIN.com/image
rather than what is written in the img src, which is www.DOMAIN.com/image.

If I change it the src URL to =image it works, but if I try this from any other page, it includes that page too
i.e.
www.DOMAIN.com/contact/image
and this isn’t where the image is found.

Is there a bit of coding I can put in the div tag, a tag or img tag or similar that will use the absolute location that I have specified?

  • 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-10T03:12:24+00:00Added an answer on June 10, 2026 at 3:12 am

    Use http:// in front of your src attribute. For example, src="http://DOMAIN.com/image instead of src="DOMAIN.com/image".

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

Sidebar

Related Questions

I have a show and hide div that shows and hides comments when clicked.
I have an image inside a div like this <div><img /><div> The image is
I have a thumbnail image inside a div. I use another image as the
I have a list of div with each div having a image inside. The
I have an 3 images inside a div and that div is inside another
I have some bulk images inside DIV tag and If I click an image
I have an image inside a div.. the div has a background picture..and I
I have an image and a hyperlink inside a div, but for some reason,
I have a div and an image inside it as a background: <div id=background>
I have set up a div however the image inside of it exceeds its

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.