View Full Version : hyperlink question
-[Bl@de Runner]
07-28-2002, 11:30 AM
Yooooooooo,
If you open a page into a new window with a hyperlink(target="_blank"), the page is not immediately maximised.
Can you add something to the hyperlink so that when you press it the page gets immediately maximised into a new window ?
brothercake
07-28-2002, 11:47 AM
no.
You can use window.open to open a mazimized window, or you can add something into the new window which maximises it
-[Bl@de Runner]
07-28-2002, 11:48 AM
What do you have to add to the page to maximise itself ?
boxer_1
07-28-2002, 04:23 PM
Here's one way you could do it. Put the following into the head section of the page you want to open your pop-up (full window) from:
<script language="JavaScript" type="text/javascript">
function newWin(){
window.open("yourPage.html","myWin","fullscreen");
}
</script>
Then, to open the window from a link, you could do it like this:
<a href="javascript:;" onClick="newWin();">Open Window</a>
Good luck ;).
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.