Page 1 of 1
hiding scrollbar, status and location on load
Posted: Tue Feb 17, 2004 6:44 pm
by John Cartwright
I know how to resize a window on load...
how how do u hide the status bar, location and scrollbars?
ty
Posted: Tue Feb 17, 2004 6:45 pm
by uberpolak
I don't know about status and location (I imagine some kind of javascript could do it), but as for scrollbars, you could put the whole page in a frame with the attribute 'scroll="no"'
Posted: Tue Feb 17, 2004 6:53 pm
by John Cartwright
thats sorta pointless :S...ty for the attempt
Posted: Tue Feb 17, 2004 7:33 pm
by tim
this is simple JS, heres a function that will open a pop-up with the stats you want:
Code: Select all
<script language=javascript>
function openwin() {
window.open("page.php", "title", "toolbar=0,status=0,menubar=0,scrollbars=no,resizable=no,width=315,height=400");
}
</script>
?>
Posted: Tue Feb 17, 2004 7:38 pm
by John Cartwright
I can't use that... and I really don't feel like explaining why :S :S
Does anyone know a way to do this onload?
ty for trying.
Posted: Tue Feb 17, 2004 8:04 pm
by tim
Oh, thats wierd, where would I be without the use of javascript?
You can try these tactics:
Code: Select all
onLoad="window.status='';"
//This will be a blank space, best I can think of. and for the scrollbar, insert into body tag:
scroll=no
This is probably way far from what you really want but is all I can think of. sorry
Posted: Tue Feb 17, 2004 8:53 pm
by John Cartwright
I'm not saying dont use javascripts, I just dont want it to a link that runs the script.. I need it to be onload.
Posted: Wed Feb 18, 2004 3:42 am
by JayBird
Not Possible
Posted: Wed Feb 18, 2004 9:02 am
by John Cartwright
Okay lets say I use that link above to do what I want to do, in the function can i use variables in the url.. for example
Code: Select all
<?php
<script language=javascript>
function openwin() {
window.open(" <? page.php?opponent=$opponent&league=$league", "title", "toolbar=0,status=0,menubar=0,scrollbars=no,resizable=no,width=315,height=400");
}
</script>
?>
or even do something like this
Code: Select all
<?php
<script language=javascript>
function openwin() {
window.open(" <? page.php?opponent=$opponent&league=$league?>", "title", "toolbar=0,status=0,menubar=0,scrollbars=no,resizable=no,width=315,height=400");
}
</script>
?>
Where it sais phptaghere is <? but for some reason <? wouldnt show up in my post