Skip to main content
Known Participant
November 10, 2007
Answered

HTML Help Controls

  • November 10, 2007
  • 4 replies
  • 427 views
Hi Everyone!
I used the HTML Help Controls feature to add a "Close" button to my pop-up windows. In the generated ouput, however, the button doesn't close just the window but the whole .chm file. Am I using this button improperly? Any ideas? I'm still new to RoboHelp so any advice would be appreciated. I'm using version 6 and just upgraded to 7, if that matters.

Thanks!!!
Wendy
This topic has been closed for replies.
Correct answer RoboColum_n_
Hi WendyCh. Sorry about the brevity of my last response. I was in a bit of a hurry. I've had a further look at things and have decided that the best way to achieve your aim is not with a HTML Help Control. Instead, position the cursor where you want your button to be, go into the Truecode tab and paste the following there:

<input type=button value="Close Window" onClick="window.close()">

Then, save, compile and test. Let us know how you get on.

4 replies

WendyChAuthor
Known Participant
November 13, 2007
Colum-
It worked! Fantastic!
Thank you so much for your help,
Wendy
RoboColum_n_
RoboColum_n_Correct answer
Legend
November 13, 2007
Hi WendyCh. Sorry about the brevity of my last response. I was in a bit of a hurry. I've had a further look at things and have decided that the best way to achieve your aim is not with a HTML Help Control. Instead, position the cursor where you want your button to be, go into the Truecode tab and paste the following there:

<input type=button value="Close Window" onClick="window.close()">

Then, save, compile and test. Let us know how you get on.
WendyChAuthor
Known Participant
November 13, 2007
You're going to have to forgive me. I need a little more instruction. I've added the script to the topic. The little red square appears indicating its presence but I don't know how to link this to a button or button graphic.
Thanks!
Wendy
RoboColum_n_
Legend
November 11, 2007
I'd do this with some javascript attached to the button similar to this...
<a href="javascript:self.close()">close window</a>