showHelp() method

Posted on 2006-03-26
Last Modified: 2012-06-21
I have a help file called help.html.
I use showHelp method that  lets  a script open a winhelp window  
I want to change height and weight the browser 's Help window
What is the code to bring up this html page?
Question by:bysexperts
    LVL 7

    Expert Comment

    You need the feature for resize the window?'help.html','winhelp', 'toolbar=no,location=no,directories=no,menubar=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=500')
    LVL 11

    Accepted Solution

    That's right.  If it is an .html file, you open it in a new browser window, and bubbledragon has shown you the code.

    The showHelp() method, specific to IE running on Win32 operating systems, lets a script open a Winhelp window with a particular .hlp file.  The calling syntax is:


    where the square braces indicate that the second parameter is optional.  You can pass the particular ID if your Winhelp file has specified context identifiers - allowing the call to showHelp() to open the .hlp file to a particular area which pertains to the specific element on your main page.  The showHelp() method does not have any window sizing parameters - Windows will open the Winhlep window however it chooses.

    If you have a help file written in .html, open it in a browser window instead.  You can achieve the same context sensitive effect by using <span> in the help file and adding the reference to the URL when opening the file:

    in your help file:

    <span id="this">
    Help about this ...<br>
    blah, blah, blah<br>
    <span id="that">
    Help about that ...<br>
    yaddah, yaddah<br>

    in your main file, if the user was looking for help when they were on a page pertaining to "that", you'd use bubbledragon's command, but with the context tag added to the url:'help.html#that','winhelp', 'toolbar=no,location=no,directories=no,menubar=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=500')

    All of help.html will be loaded into the new window, but it will be scrolled to the beginning of your "that" section.  Also, in this example, the new browser window will be named and referenced as 'winhelp', but will have nothing in particular to do with the showHelp() method nor .hlp files.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Article by: DanRollins
    This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (, we'll extend the program by adding a depth-…
    JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now