View Full Version : change window status from within window
havey
06-13-2005, 04:53 AM
i have a window that loads and i'm trying to hide the tool, back button, and url stuff for this pop-up login screen, and becasue of the situation about the popWin i need to hide these items after server side stuff loads, this is kinda what i'm trying to say
window.onload = loggin;
function loggin(){
this.window.status=0;
}
can the windows properties be changed from within the window?
Thanks!
_Aerospace_Eng_
06-13-2005, 05:05 AM
So you want to adjust the window properties of a popup? How is this popup opened? With javascript or is it just a plain link using target="_blank"?
havey
06-13-2005, 05:19 AM
the page producing the link is done server side, so server side i iterate thu an array to format the html, but some of the url addresses open different windows, i have one particular window that i want to hide the properties, so to stop blabing on.... i'm opening the window as _blank but it would get meesy server side to layout a pattern for only those who need the properties of the _blank window hidden. so i want to change the properties from within then window as i open it as _blank from the parent
_Aerospace_Eng_
06-13-2005, 05:27 AM
You would have to use the window.open javascript feature in order to change the window properties.
<script type="text/javascript">
function openMe(){
formwindow=window.open('','thewin','status=0,directories=0,toolbars=0,menubars=0,width=500,height=50 0');
}
</script>
Then set the target of the form to open in thewin
You can't change the window properties using only _blank.
There seems to be a space where it says height=50 0' that space shouldn't be there, it could just be my browser.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.