Jun 17th, 2002, 11:46 PM
#1
Thread Starter
Fanatic Member
how to hide menubar and status bar
Hi,
How can i hide a menubar and tool bar of IE.
I have a main asp. when i enter the URL i want the current browser to have its address bar ,tool bar and menu bar hidden.
Please let me know if it is possible..
I am using window.open.. but the user has to click the href.. i want this to happen on load..
Thanks in advance,
Pradeep
Jun 18th, 2002, 03:53 AM
#2
Fanatic Member
First, try this code
Code:
function openwindow(){
window.open("page2.htm","newwin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=400")
}
...and then put openwindow() in the body onload event...
Code:
<body onload="openwindow()">
Jun 18th, 2002, 04:08 AM
#3
Thread Starter
Fanatic Member
Hmmmmm
No Good... could you suggest me.. i dont wan pop up windows.. i want the parent to change its property onload
Jun 18th, 2002, 06:03 AM
#4
Fanatic Member
Not possible I'm afraid, only works on windows created by a scripting language, not the parent.
Jun 18th, 2002, 06:07 AM
#5
Thread Starter
Fanatic Member
Thanks
Ok.. i will do the first one...
Thank you,
Pradeep
Jun 18th, 2002, 07:17 AM
#6
New Member
why not get the first page to open the window, in the exact format you want, then use this command in the formatted window:
window.parent.close()
This way, you'll have your formatted window, and the previous window will go immediately.
Jun 19th, 2002, 12:57 AM
#7
Thread Starter
Fanatic Member
Hi
I had done that window.close()
But when i use it it ask's Do you want to close this window..??
How can i prevent this message box..??
Thanks in Advance,
Pradeep
Jun 19th, 2002, 03:20 AM
#8
Fanatic Member
Unfortunatly you cant do that either. You can only close a window that you had opened yourself using a scripting language.
Jun 19th, 2002, 03:34 AM
#9
New Member
formatted IE Window
try this with two files:
file1 (I called test1.htm)
<HTML>
<HEAD>
</HEAD>
<BODY>
</BODY>
</HTML>
<SCRIPT LANGUAGE=javascript>
<!--
function window.onload(){
//formatted window
window.open("test2.htm",null, "width=500;height=500");
}
//-->
</SCRIPT>
File2 (I called "test2.htm")
<HTML>
<HEAD>
</HEAD>
<BODY>
popup.
</BODY>
</HTML>
<SCRIPT LANGUAGE=javascript>
<!--
function window.onload(){
window.opener.close()
}
//-->
</SCRIPT>
By navigating to test1, a formatted window will miraculously appear on it's own, without any messagesboxes asking you if your sure you want to close any windows.
Remember kids, Code Good, Code RIGHT !
Jun 19th, 2002, 03:50 AM
#10
Thread Starter
Fanatic Member
Hi
It is still poping up a message box..
Jun 19th, 2002, 03:52 AM
#11
New Member
What browser are you using? I'm confident that it should work with IE5+...
remember kids, code good, code RIGHT!
Jun 19th, 2002, 03:59 AM
#12
Thread Starter
Fanatic Member
Yeup
u r right.. i am on i.e 6.0 and S.P 6.0
Jun 19th, 2002, 04:03 AM
#13
New Member
well, i'm using IE6 and I don't get that message, so I don't think I can help you...
Sorry...
remember kids, code good, code RIGHT!
Jun 19th, 2002, 04:45 AM
#14
Thread Starter
Fanatic Member
Hi
I think .. i can prevent that message box from IE settings.. i mean IE properties..
well i'll try it and let you know if it helps...
Hae thanks,
Pradeep
Jun 19th, 2002, 04:52 AM
#15
Thread Starter
Fanatic Member
Hi
Attached Images
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width