Code explanations:
The first 2 added lines are storing the target window value in new variables.
Then _fhtarget and fh.target value are changed to _blank.
_blank is a key word for Internet explorer, so it always opens a new window.
Then after the "Export to PDF" command is sent, the target window variables are resetted to what they were.
If the target window variables are not resetted, any action in the "Export to PDF" Frame creates a new window.
Both variables target._fhtarget and fh.target need to be changed because of Dynamic and Enhanced layouts.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.