Connecting Tech Pros Worldwide Forums | Help | Site Map

URL to open in maximized window state within current window

Familiar Sight
 
Join Date: Sep 2006
Posts: 142
#1: Nov 20 '08
Hi, I need help please!

I have a link on a page, where i wont it open in maximized window state.

the "_parent" allows to open in current window, but the maindow is never at maxmize state.
I want the url to open in current window which it does but also force to open in maxize window state:

Expand|Select|Wrap|Line Numbers
  1. <td rowspan="2"><a href="http://srv8-z199/fcFlow/Home.aspx" target="_parent"> height="127"></a></td>
  2.  
Regards

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Nov 20 '08

re: URL to open in maximized window state within current window


You can resize the browser using the window.resizeTo() method, but ensure you only use it when the user will thank you for it. It can be extremely irritating to browse to a site which then decides to resize your browser for you.
Familiar Sight
 
Join Date: Sep 2006
Posts: 142
#3: Nov 21 '08

re: URL to open in maximized window state within current window


Thank You, This is great - The url opens application.
Two minded in doing in now though... :)
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: Nov 21 '08

re: URL to open in maximized window state within current window


You're welcome and I'm happy that I've got you thinking. For an intranet application, a select user base, controlled environment, sure, go ahead. The users know what to expect and there's no problem. On the wider WWW, a visitor stumbles upon your site only to have their browser "hijacked" most likely means that you'll never see them again, though it can of course be avoided (with the NoScript Firefox addon, for example, or just simply having JavaScript disabled).
Reply