I have the following code to display a java script pop-up windows:-
<a href="javascript:OpenPopUpPage('www.bing.com');">About this</a>
But currently the users are not able to expand the height and width of the pop-up windows (in other word its boarder), and to display the full window they have to use scroll bar instead ?
You can try to use the next window arguments (window.innerWidth, window.innerHeight):
<a href='javascript:OpenPopUpPage("http://www.bing.com", null, window.innerWidth, window.innerHeight);'>Open Bing</a>
but anyway there are issues with external links in sharepoint.
if you want to display popup of another website
<a href="javascript:window.open('http:///www.bing.com', 'yourWindowName', 'width=300,height=250');">Open Bing</a>
and if you want to display your own popup, use this
<script>
function openWin()
{
myWindow=window.open('','','width=200,height=100');
myWindow.document.write("<p>This is 'myWindow'</p>");
myWindow.focus();
}
</script>
<input type="button" value="Open window" onclick="openWin()" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.