How to get an image to close a window

Apologies as I'm a complete newbie to anything Dreamweaver, but thought I'd give an idea for my website a go.
I'm going to open a new window to show my portfolio, but I can't seem to figure out how to get this window to close. I created a "close window" jpg that I want to use.
I try it and it seems to work in Safari, but not Firefox.
SOmeone gave me this code:
javascript:self.close()
and I put in properties for that image.
Can anyone let me know how to get it to work properly.
Thanks in advance.

Hi,
in addition to your intention "to get an image to close a window", you could try this too:
<input type="image" src="yourimage.jpg" value="Close this window" onClick="window.close();">.
I published two solutions (one text only, one with an image) here: http://hansgd.de/AdobTest/close.php
Hans-Günter

Similar Messages

  • How to get the image stored in archieve link as an attachment in work item.

    Hi All,
    through transaction OAWD we are storing scanned images.
    Once this transaction is executed a workitem appears in the inbox of the initiator with the scanned invoice as attachment.
    When the user executes the work item FV60 screen is displayed where the user enters the data based on the scanned invoice attachment.
    After the user Parks the document the custom workflow triggers and a workitem appears in the inbox of an approver.
    Our requirement is that the scanned image should also appear as the attachment.
    Can you please suggest how to get the image stored in archieve link as an attachment in work item.
    Regards
    Shraddha

    Hi Martin,
    with every parked document a scanned image is linked.
    I need to create a link under objects and attachments in the work item, such that when the user clicks that link the image is displayed.
    At present the following functionality is available.
    The BO used is FIPP
    Objects and attachments:
    parkeddocument:AK0108500001252008.(via FIPP binding with WIOBJECT_ID)
    On clicking the link below objects and attachments: the parked document AK0108500001252008 opens in display mode.
    Now we want to have 2 links:
    parkeddocument:AK0108500001252008.
    image.
    When we click on the link image then the scanned invoice linked to the document should get opened.
    I am able to get the image id of the the image through  SAP_WAPI_GET__OBJECTS,
    export parameter leading_object provides the detail.
    But I am not able to figure out how to use it in my workflow to display it as an attachment.
    Hope this will give a better understanding of my question.
    can you please suggest as to how I should proceed with it.

  • How to get my images always order by file name, and not by time of captur, in all the folders in the library?

    How to get my images always order by arquive name, and not by time of captur, in all the folders in the library?
    Sorry for the poor english, but im portugues.
    In the library we can change the order of classification of image by, time of capture, name of file etc... I'm wondering if its possible define to be always by the name of file.
    It ´s possible?
    And i have other question, in print label we have an option to auto rotate to feet in page to have the image using the maximum area in the page (auto rotate, zoom etc), its possible to change the orientation of the rotation to be always in  the other direction?

    The Muvos are USB Mass Storage devices and do not have the ability to display track information based upon ID3 tags.
    The Zens all read and display track info based upon ID3 tag information that is either gathered from an online source or entered by the end-user.
    If you want the track information displayed instead of the ID3 tag information, you could edit the ID3 tags and rename the title to whatever you have as the file name. Not sure why your file names would differ so much from the ID3 tag info though, almost all of my content has the same name for the filename as it does on the ID3 tag title.

  • How to get all images in indesign CS5 with javascript?

    Hi,everybody,
    How to get all images in indesign CS5 with javascript?I want to delete them.
    Anyone can give me some example codes?
    Thanks,
    Bridge

    Hey!
    This will remove all images from your InDesign document:
    var myLinks = app.activeDocument.links.everyItem().parent;
    for(var i = 0; i < myLinks.length; i++)
        myLinks[i].remove();
    Hope that helps.
    tomaxxi
    http://indisnip.wordpress.com/
    http://inditip.wordpress.com/

  • [CS2]How to get the Image Width & Height using JS (ILLUSTRATOR CS2)

    Hi,
    How to get the Image width & height of an Image using javascript .Im using Illustrator CS2.
    Any sample code
    Regards
    MyRiaz

    you can reference the dimensions of a loading image (or swf)
    by referencing the target movieclip's dimensions AFTER loading is
    complete. ie, use preloader code or the onLoadInit() method of a
    moviecliploader listener.

  • Hi I have opened my trial of photoshop,but cant figure out how to get an image from my pictures in t

    I have opened my trial of photoshop,but cant figure out how to get an image in.

    Hi,
    The first video on https://helpx.adobe.com/creative-cloud/learn/start/photoshop.html shows you one way to do this: If you open Photoshop, just drag the image file from Explorer/Finder into the PS workspace (or even just to the PS icon).
    Another way is to open Photoshop, select File > Open from the menu, and navigate to your image.
    Hope this helps,
    Randy Nielsen
    Learning Content Manager, Creative Cloud Learn
    Adobe

  • How to get to user startup folder in windows 7

    How to get to user startup folder in windows 7

    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription.  This is a standard response I’ve written up in advance to help many people (thousands, really.)
    who post their question in this forum in error, but please don’t ignore it.  The links I share below I’ve collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots
    of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks, Mike
    MSDN and TechNet Subscriptions Support

  • Someone stole my ipod touch and i dont know how to get to my pictures on my windows computer. i did back up my pics to icloud. and, will Apple give me another ipod?

    Someone stole my ipod touch and i dont know how to get to my pictures on my windows computer. i did back up my pics to icloud. and, will Apple give me another ipod? i am so sad.

    Hello Becky,
    Have you double checked to make sure it hasn't been moved to a different page or folder?  Double check your iPod's Restrictions as well to make sure it hasn't been disabled.  To do this, head to Settings -> General -> Restrictions.
    Default Apps that came with your iPod or Apple's iOS cannot be removed.
    B-rock

  • How to get background image to fill the browser and remain fixed in both IE and Firefox?

    Basically what it says in the title. I've come very close in achieving this but something just doesn't tie up in the html and css code...
    First of all, I'm using IE8 and the latest version of Firefox to test this.
    I used 2 sources of information for getting this done: 1) http://css-tricks.com/perfect-full-page-background-image/ and 2) http://stackoverflow.com/questions/8958697/css3-background-size-cover-doesnt-make-image-co ver-vertically
    In Case 1 the example on the page called CSS-Only Technique #1 gives code that works almost perfectly for me, except that obviously I need a background image, however the CSS provided there is clearly just for an image dropped in the body of a page with no regard for other content that may already be there. The html code that I put on the page is simply <img class="bg" src="../images/background_image.jpg">
    Obviously I used the CSS code provided in the example, minus the last bit which is "@media screen" etc etc, which seems irrelevant to me. Obviously substituting values to suit the image on my page.
    So what happened is that it almost worked as intended in both the browsers (which means the image filled both browsers width-wise as intended and also remained fixed when I zoomed in or out in each case) except that the image went over the top of the current content that I had there already precisely because it's not a background in this "technique". (A curious side-note is that the image didn't push down the content, as I'd have expected in normal circumstances, but went right over the top of it so it hid it (like z-index).
    One thing that does bother me about this "technique" is that if you click on View Demo just below the code provided you will see on the working example page (forest background) the image clearly works as a background and the content sits happily on top! So I don't know whether the person providing the example was trying to mislead people or what! Or he got lazy and showed a different page that didn't use the exact code he provided. No matter.
    In any case this leaves me with the job only half finished, as I still need a background image that works like the 'normal image' code provided.
    On to Case 2 and on this page the first example provided gives the CSS for the background image - namely the code within html {...} part and also shows the same 'normal image' code as given in Case 1. In this case however, although the person provided a suggestion, the css and html doesn't really tie up properly plus some of the css and html seems a bit redundant. So this time when I used the 'html portion' of the CSS code (i.e. just the bit that was most relevant) I got two different behaviours in each browser and neither of which was quite what I'm looking for. In IE8 initially the page looks fine (background fills the page and content is on top) however when I zoom in or out the background also zooms in or out accordingly so is NOT fixed. In Firefox the background image DOES stay fixed, however because the image originally is not the whole height of the browser I'm guessing the code stretches it downwards (while keeping proportions - so the image essentially enlarges) to fill all of it. The quick way to get around it is to probably add some white space to the bottom of the image just to give it enough height that it doesn't stretch/resize automatically. But it would be nice to find out anyway how to get around this in the code. Overall I would say that the result in Firefox comes closest to the desired solution but of course it doesn't help matters with IE8.
    Apologies for the lengthy description but that should at least provide plenty info for anybody that might have a possible solution for me. Essentially what would be great is if somebody could advise me how to take the code from Case 1 and apply it to a 'background' piece of coding like the type that's contained within html {...} in Case 2. Like I said, it's so nearly there but I just can't make it work atm after trying to combine the various bits of code this way and that... Alternatively, if somebody has another html-css version that works nicely for achieving this then please by all means let me know! Thanks v much in advance!

    This works in modern CSS3 supporting browsers.  But not pre-IE9.
    http://alt-web.com/TEST/Resizable-BG.shtml
    Nancy O.

  • How to get all images from folder in c#?

    I am trying to get all images from folder. But it is not executing from following:
     string path=@"C:\wamp\www\fileupload\user_data";
                string[] filePaths = Directory.GetFiles(path,".jpg");
                for (int i = 0; i < filePaths.Length; i++)
                    dataGridImage.Controls.Add(filePaths[i]);
    Please give me the correct solution.

    How to display all images from folder in picturebox in c#?
    private void Form1_Load(object sender, EventArgs e)
    string[] files = Directory.GetFiles(Form1.programdir + "\\card_images", "*", SearchOption.TopDirectoryOnly);
    foreach (var filename in files)
    Bitmap bmp = null;
    try
    bmp = new Bitmap(filename);
    catch (Exception e)
    // remove this if you don't want to see the exception message
    MessageBox.Show(e.Message);
    continue;
    var card = new PictureBox();
    card.BackgroundImage = bmp;
    card.Padding = new Padding(0);
    card.BackgroundImageLayout = ImageLayout.Stretch;
    card.MouseDown += new MouseEventHandler(card_click);
    card.Size = new Size((int)(this.ClientSize.Width / 2) - 15, images.Height);
    images.Controls.Add(card);
    Free .NET Barcode Generator & Scanner supporting over 40 kinds of 1D & 2D symbologies.

  • How to get the image in docking control  in a report using doc management

    HI All
    My question is that is that i am storing one image using documents in jha2n.
    Now I want to get that image in report using Document management.
    Pls guide how to proceed as I am new and dont know anything about document management.
    Thanks
    Pooja

    Hi,
    Please kindly refer to the online help link below:
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/7a/973035624811d1949000a0c92f024a/frameset.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/7a/973035624811d1949000a0c92f024a/frameset.htm]
    And for handling the DMS document, you may check the BAPIs in SAP Note: 504692
    Function group: CVBAPI
    BAPI_DOCUMENT_GETDETAIL2
    BAPI_DOCUMENT_CREATE2
    BAPI_DOCUMENT_CHANGE2
    BAPI_DOCUMENT_DELETE
    For display image in the docking control, pleae kindly refer to the SAP DEMO: RSDEMO_DOCKING_CONTROL
    Cheers,

  • How to get larger images in albums?

    I just realized that when you click on a thumbnail in one of my albums, the larger image is actually smaller than the original photo! All the photos I've put into my web albums have been shrunk to fit into the album display area. For instance, a photo that normally displays about 7 inches high when I view in Preview, comes out about 4.5 inches tall when displayed in my web album.
    How can I get it to display photos at actual size?

    Ray Dunakin wrote:
    I tried turning off "optimize images", but they still were showing up at the reduced size.
    providing a url to your site so people could have a look at what's going on may help...
    What I'd really like is a way to designated specific images to display at a larger size -- most don't need to be very large, but some do.
    I think that's not possible in iWeb PhotoPages... As you choose one format for all. However to get larger images in albums click on a photo and a window will popup called "Photo grid". You can increase the size of the images displaying by reducing the spacing and/or decreasing the number of columns.
    Regards,
    Cédric

  • UREGENT: How to get a Image displayed on Canvas?

    Hi, my problem is: I have an image drew on Canvas, but I cannot access this image through Java, the image is there on Canvas, but I simply can't get that image.
    Anyone know how can I get an Image displayed on Canvas?

    Pt 1. > but I cannot access this image through Java, the
    Q1. > Anyone know how can I get an Image displayed on Canvas?
    From the axioms given, I would say that it is not possible. :)
    Why is it so UREGENT?

  • How to get an image to repeat horizantally

    How do I get an image to repeat horizontally? I am pretty new
    to dreamweaver and have little experience with CSS so try to
    explain things in the easiest manner possibly.
    www.wiggles.3dslice.com
    See the banner up top? I want the edges to repeat until the
    end of the screen.

    Change the CSS style's properties and set the
    'background-repeat' option to the property 'repeat-y'. You can edit
    the style in the properties dialogue of the CSS section in the
    side-bar, by using the CSS properties dialogue box in Dreamweaver
    or by working with the raw code. I personally don't like the
    latter, mainly due to the fact that if you choose to work with code
    view have to manually type the property in to the class and it can
    be confusing for beginners, but if that works for you I encourage
    you to do that.
    Hope this has helped you.
    EDIT: Please never mind what I have written above; after
    further reviewing your question I realized that I don't think that
    it'll be able to help resolve your specific problem after all. I
    have left the original text there for you to read anyway in case it
    may be of some use. My apologies for speaking too soon and I hope
    things work out for you.

  • How to get brighter image in OCR Training?

    Hi,
    The Image appears with Dark Background when it is loaded to train characters using OCR Training. But the image is very clear when it is opened with Micosoft Image and Fax Viewer or any other image editor.
    Please advice how to get a brighter image while training charecters though OCR Training?
    Thanks in advance
    Shekh

    You don't understand.  There is a ban on posting bitmap images.  Why?  Because they are huge files that take a lot of space on the NI servers and take an unnecessarily long time to download.
    You need to post the image as a .jpg or .png.  Those image files take up far less space.  .PNG files are the best for things like LabVIEW diagrams where there are distinct, sharp graphics.  The file is the smallest and there are no artifacts from the compression process.  JPEGs are usually better for photographs.
    Attached is your image resaved as an .png file.  Others can download this image instead.  You'll notice that it is 1/42nd the size of your original bitmap image.  (By the way, a real jpeg of your bitmap is about 1/18th the size of the original file.  Smaller, but not as small as a .png).  Saving a bitmap and giving it a .jpg extension is NOT the same as saving it as a JPEG.  It is still a bitmap but with a phony extension.
    Attachments:
    Read_Image_Using_OCR-training.png ‏92 KB

Maybe you are looking for

  • Write-off asset below or after certain Value of Asset.

    Hi All, I am try to write-off asset value from using ABZU - Write-Up But i am confused is it wright tcode or any other process please help me. Regards, juhi

  • Packaging document in CS5 hangs or is extremely slow

    I am attempting to package a document in CS5 to send to a client. However, CS5 seems to hang in the near the end of the process. It has been nearly 30 minutes now and the dialog box still reads: "Saving the document... Open Document 'document-title.i

  • Chart type in WAD?

    Hi, I am working on charts of cone type in WAD(7.0).But I am not finding the cone shape charts.Can any one help me out. Thanks in Advance. Ravi

  • Workflow for self registration

    Hi Folks, I need to know the exact workflow used for user self registration, i.e., the workflow where in the mail to the registration approver to approve the new user request is triggered. Can you please let me know. Regards Rajeev

  • Cannot recover ERASED ipod files

    1) i accidently erased my entire harddrive (by going to itunes and clicking something, like sync/erase all) 2) i tried to recover my ipod through a program called "recover my ipod" and successfully got all the files i needed but once i recovered them