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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:05:56+00:00 2026-05-27T00:05:56+00:00

I have a simple code: <div id=rss> <div id=close> <a href=# ><img alt=closesrc=images/close.png width=16

  • 0

I have a simple code:

<div id="rss">
    <div id="close">
        <a href="#" ><img alt="close"src="images/close.png" width="16" height="12"/> </a>
    </div>
    <ul><a href="fill.php"><?php  echo $rss['rss']; ?></a></ul>
</div>

I want when someone click image <a href="#" ><img alt="close"src="images/close.png" width="16" height="12"/> </a> entire <div id="rss"></div> would close. I’m looking at javascript function onclick="window.close(), but it looks is not what I need. Help, someone?

  • 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-27T00:05:57+00:00Added an answer on May 27, 2026 at 12:05 am

    window.close will close an actual browser window. It sounds like you want the div

    <div id="rss"></div>
    

    to hide instead.

    As was pointed out in comments you can do this with the following javascript.

    <a href="#" onclick="document.getElementById('rss').style.display='none'; return false;" >
      <img alt="close"src="images/close.png" width="16" height="12"/> 
    </a>
    

    Note that we use single quotes in the javascript so that it doesn’t interfere with syntax of html. Also note that we return false which prevents the clicked link from navigating.

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

Sidebar

Related Questions

I have the following simple code : HTML: <div> <img src='http://i51.tinypic.com/4kz4g5.jpg' /> </div> CSS:
Simple code: <a href=#> <div> <img src=http://dummyimage.com/600x400/000/fff&text=image class=image /> <img src=http://dummyimage.com/600x15/000/fff alt= class=shadow />
Hello I have a very simple code <a href='.$aProfileInfo['Website'].' target=_self> <div class=callButton>Website</div> </a> The
I have problem with this simple code: $img_oryg = '<igm class=aligncenter src=(oryginal img source)
I have a simple DOM code like the following <div> <div> </div> </div> I
I have this simple code: <html> <head> <script src=jquery-1.5.1.min.js type=text/javascript></script> <script type=text/javascript> $(function() {
i have simple side menu with this html code : <div id=menu> <div> Menu
I have this simple HTML code: <div id=new_gallery> <p id=add_gallery>Add new gallery</p> </div> and
If I have a simple piece of code for example <div> Test Div </div>
I have a very simple html code: <body> <div id=container> <div id=left> some text

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.