hiding scrollbar, status and location on load
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
hiding scrollbar, status and location on load
I know how to resize a window on load...
how how do u hide the status bar, location and scrollbars?
ty
how how do u hide the status bar, location and scrollbars?
ty
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
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>
?>- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Oh, thats wierd, where would I be without the use of javascript?
You can try these tactics:
This is probably way far from what you really want but is all I can think of. sorry
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- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
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
or even do something like this
Where it sais phptaghere is <? but for some reason <? wouldnt show up in my post
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>
?>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>
?>