Wonder
asked on
window size
I have this page:
Size.html
--------------------------
<html>
<head>
<titlte>Size</title>
<head>
<body>
Please complete this file with the needed code
<body>
</html>
--------------------------
I want this page to have a fixed size (600,600), fixed X,Y position (100,100) with no scrolling, menu bar ..etc
so when ever i call this page it have this setting ( i want the code to be in the page it self and not in the link)
Size.html
--------------------------
<html>
<head>
<titlte>Size</title>
<head>
<body>
Please complete this file with the needed code
<body>
</html>
--------------------------
I want this page to have a fixed size (600,600), fixed X,Y position (100,100) with no scrolling, menu bar ..etc
so when ever i call this page it have this setting ( i want the code to be in the page it self and not in the link)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oh yeah, forgot the top and left features of the open() command. And I should have checked the question again before posting my code. Too slow. :-(
ASKER
there is no way about hiding the bar ...
I have an idea in mind but i don't know if it will works, before that let me tell you my case:
i have link which should lead to the size.html page, i know i can write this L,W,X,Y , bar ..etc with the link , but that will work if i have an ordinary link in an html file, but my problem is that i have this link in a flash button . i tried so many ways and they didn't work .. the flash limited in writing a URL ..
That is why i thought of having these settings in the size.html itselve, but since it doesn't fullfill all my requirments.. i thought of the following.
in the flash button i will call a page called title.html which will be placed in one of the frames i have (frame1). and in this title.html there should be an automatic call for the size.html file which should open in new window with the earlier mentioned settings. how can i code that if it is possible
I have an idea in mind but i don't know if it will works, before that let me tell you my case:
i have link which should lead to the size.html page, i know i can write this L,W,X,Y , bar ..etc with the link , but that will work if i have an ordinary link in an html file, but my problem is that i have this link in a flash button . i tried so many ways and they didn't work .. the flash limited in writing a URL ..
That is why i thought of having these settings in the size.html itselve, but since it doesn't fullfill all my requirments.. i thought of the following.
in the flash button i will call a page called title.html which will be placed in one of the frames i have (frame1). and in this title.html there should be an automatic call for the size.html file which should open in new window with the earlier mentioned settings. how can i code that if it is possible
If you have your title page already then you can call a function within it. The function would be something like:
function openwindow(theurl) {
window.open(theurl,"mynewp age","widt h=600,heig ht=600,top =100,left= 100,leftX= 100,topX=1 00,locatio n=0,status =0,menubar =0");
}
Or if you are opening a new page in frame1 then you can have the same function that page with an onload function in the body tag.
<html>
<head>
<script language="JavaScript">
function openwindow(theurl) {
window.open(theurl,"mynewp age","widt h=600,heig ht=600,top =100,left= 100,leftX= 100,topX=1 00,locatio n=0,status =0,menubar =0");
}
</script>
</head>
<body onload="openwindow('mynewp age.htm')" >
Any content within frame 1.
</body>
</html>
function openwindow(theurl) {
window.open(theurl,"mynewp
}
Or if you are opening a new page in frame1 then you can have the same function that page with an onload function in the body tag.
<html>
<head>
<script language="JavaScript">
function openwindow(theurl) {
window.open(theurl,"mynewp
}
</script>
</head>
<body onload="openwindow('mynewp
Any content within frame 1.
</body>
</html>
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
In the absence of responses, I may recommend DELETE unless it is clear
to me that it has value as a PAQ. Silence = you don't care
</note>
Cd&
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
In the absence of responses, I may recommend DELETE unless it is clear
to me that it has value as a PAQ. Silence = you don't care
</note>
Cd&
It is time to clean this abandoned question up.
I am putting it on a clean up list for CS.
<recommendation>
points to dij8
</recommendation>
If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.
Cd&
I am putting it on a clean up list for CS.
<recommendation>
points to dij8
</recommendation>
If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.
Cd&
per recommendation
SpideyMod
Community Support Moderator @Experts Exchange
SpideyMod
Community Support Moderator @Experts Exchange
You can use the following:
<html>
<head>
<titlte>Size</title>
<script>
function document_onload()
{
self.resizeTo(600,600);
self.moveTo(100,100);
}
</script>
<head>
<body onLoad="document_onload()"
Please complete this file with the needed code
<body>
</html>
or if that's not what you'd like:
<html>
<head>
<titlte>Size</title>
<script>
function document_onload()
{
if(location.search.length=
window.open(location.href,
}
</script>
<head>
<body onLoad="document_onload()"
Please complete this file with the needed code
<body>
</html>