我想在加载商家网站之前显示div数据。
JavaScript代码:
function two()
{
var newWin = window.open('URL');
//I want to load "<div class="loader"> content before the above URL loads in new window
}
这是我的HTML代码:
<div class="loader">I have some content and images which i wanted to dispaly in loading page</div>
<input class="btn add-to-cart-btn" onclick="two();" type="button" value="More Info At {{ product.vendor }}"/>
如何加载div内容?如果有人有任何建议,请告诉我。