showHelp() method

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?
bysexpertsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bubbledragonCommented:
You need the feature for resize the window?

window.open('help.html','winhelp', 'toolbar=no,location=no,directories=no,menubar=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=500')
0
mvan01Commented:
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:

showHelp("URL",["contextID"])

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>
<span id="that">
Help about that ...<br>
yaddah, yaddah<br>
</span>

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:

window.open('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.

mvan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.