jQuery is not loading in new window in Joomla
I have a page default.php
in component module.
default.php
contains
defined('_JEXEC') or die('Restricted access');
$document = JFactory::getDocument();
JHtml::_('jquery.framework');
And in default.php
jQuery is successfully loaded and in console shows
jQuery().jquery;
"1.12.4"
In my default.php
file I have a link, when I click that link it open a new window.
window.open("?view=report&format=raw&uid=" + ibonum, 'myWin', 'toolbar=no, directories=no, location=no, status=no, menubar=no, resizable=yes, scrollbars=yes, width=960, height=741');
In that page I use the code to load jquery:
defined('_JEXEC') or die('Restricted access');
$document = JFactory::getDocument();
JHtml::_('jquery.framework');
But here (new window) jQuery is not loaded. Console shows:
jQuery().jquery;
Uncaught ReferenceError: jQuery is not defined
at <anonymous>:1:1
And also here $document->addScript
is also not working.
so my question is: How I load jQuery in new window i Joomla?
My joomla version is 3.9.2