/    Sign up×
Community /Pin to ProfileBookmark

Two problems with opening new window(s) in IE

I grabbed this JS code from [URL=http://www.webdeveloper.com/forum/showthread.php?t=73299&highlight=window+sizing]this thread.[/URL]

It works wonderfully in Mozilla Firefox. However, when using Internet Explorer, I get a message that states:
“To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer.”

Could someone tell me why this happens, and how(if possible) I can get around it?

The second problem is that when I permit access to the ‘active content’, it will then open the window, but not in the top left-hand corner where I want it. Instead, it opens it halfway down and over so it’s halfway off the screen. (Don’t know why; apparently it’s an IE thing).

Assuming that the second problem does not fix itself if and when the first problem is fixed, can the second problem be fixed, and if so, how?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FromU2MEJan 09.2006 — First of all, IE is showing you the error message because you're testing the script on your local machine (when/if you upload it to a webserver it will disappear).

Your other problem, moving the pop-up, there's nothing that says where the window shall be placed. Add this to place it in the top left-hand corner:

[CODE]<A onclick="open('your-link.htm','view','height=300,width=400,[COLOR=Red]top=0, left=0,[/COLOR] resizable=no,toolbar=0,scrollbars=no,status=no')"
href="your-link.htm" target=view>Text or image</a>[/CODE]
Copy linkTweet thisAlerts:
@XeroTrinityJan 10.2006 — I believe you mis understood his question.

I did what you said FromU2ME and i got the same problem he was trying to explain...

Heres a screen shot

[IMG]http://img.photobucket.com/albums/v229/InfinityXero/123.png[/IMG]
×

Success!

Help @Karla 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 5.14,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...