Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
What is the javascript for the back button?
Copy link to clipboard
Copied
Hi,
history.go(-1)
Greet,
Willam
Copy link to clipboard
Copied
Thanks, but that does not work...
I put a back button in the main toolbar and set that as the ON-click script. No luck.
In order to get the print buttton to work I used...
var printAction=function()
{
var topicPane=top.frame[1}.frames[1];
topicPane.focus();
topicPane.print();
}
I want the back button to return the main frame to the previous content.
Any ideas?
Copy link to clipboard
Copied
Hi,
In your button, go to the Action tab. In the field OnClick, enter top.frames[1].frames[1].history.go(-1);. This will set the topic to the previous topic.
Greet,
Willam
Copy link to clipboard
Copied
That works.
Thank you.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Peter Grainge
See Snippet 24 on my site.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I just wanted to let people know that I tried this and it works for both Mozilla Firefox 3.5.7 and Internet Explorer 7.0.
I had gotten a solution (below) in a similar vein about 6-7 years ago from the forums when I first started working with WebHelp. This worked beautifully in Internet Explorer and still does a version or two later. However, the software development company I work for recently starting developing with Firefox. I discovered that if I bring the help up in Firefox using the code below for the "Print Topic" button's onClick command that the browser prints the toolbar frame rather than the current topic frame.
javascript:parent.frames[1].bsscright.focus();window.print();
Whereas window.parent.frames[1].frames[1].focus();window.parent.frames[1].frames[1].print(); works great for WebHelp in either IE or Firefox.
Copy link to clipboard
Copied