hiding scrollbar, status and location on load

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

hiding scrollbar, status and location on load

Post by John Cartwright »

I know how to resize a window on load...

how how do u hide the status bar, location and scrollbars?

ty
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Post 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"'
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

thats sorta pointless :S...ty for the attempt
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post 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>

?>
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Not Possible
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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
Post Reply