/    Sign up×
Community /Pin to ProfileBookmark

Full Screen issue in IE 7.0

Hi all,
Please look at following javascript code.

<Code>
function fullscreen(){
w = window.open(‘home.html’, ”, ‘fullscreen=1’);
window.opener = window.top;
window.close();
}
</Code>

Call the above function on body onload event. It simply opens new window fullscreen and closes

the previous one without asking that “Either you want to close the parent window”.
Everything

was working fine but now facing issue with I.E 7.

1) Firstly, it prompts that either you wanna close the parent window? I dont need to show this

message.
2) Secondly, in I.E 7, there is an address bar displaying url. I dont wanna show address.

Any Help.

Regards,
Imran Ghani

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@RobDavidFeb 08.2007 — I don't know about the rest of that....but I know IE7 always displays the address bar. Its a security "Improvement"
Copy linkTweet thisAlerts:
@felgallFeb 08.2007 — There are a growing number of bars in the browser that can't be turned off. Think of the third parameter of the window.open call as recommendations that browsers may or may not action.
Copy linkTweet thisAlerts:
@nidhin_plDec 18.2007 — try this

window.opener=window.top;

var test = window.open(' ','_parent',' ');

window.close();

i think this will solve your first issue
Copy linkTweet thisAlerts:
@felgallDec 18.2007 — Closing a window you didn't open is not allowed. Your visitor may have 50 tabs running there for different sites with yours being only one of those tabs. You would therefore close all the other things they are in the middle of working on resulting in their wanting to strangle you. Fortunately modern browsers do not allow you to try to get yourself strangled and will ignore requests to close a window you didn't open.
×

Success!

Help @imranghani spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...