Re: SP2 and Javascript

From: Richard (Richard_at_pridge.uk.uk)
Date: 09/10/04


Date: Fri, 10 Sep 2004 18:42:45 +0100

Some people said things, and then:-
Tony Talmage added

Check the thread "Security says javascript mouseovers are Dangerous?" I
think it answers your problem perfectly.

--
Richard
>I posted this question a while back and never received an answer... now that
>I've installed SP2, I see that my fears were correct..  my OP is as follows:
>
><quote>
>I noticed on the page linked below [in reference to the URL
>http://www.microsoft.com/windowsxp/sp2/ieoeoverview.mspx lower in quoted
>text] that "Internet Explorer has put a stop to this behavior by prohibiting
>Web sites from running scripts that resize or reposition your browser
>windows."  Will my default start page be affected by this?  I currently have
>my startpage set to
>"javascript:resizeTo(800,600);moveTo(250,205);document.location.href='http:/
>/mail.yahoo.com'".  I do this because I try to make sure all of our web
>pages will display fully in 800x600, so I force my browser to that size, as
>well as forcing it to start in the center of my screen.
>
>As my start page is a script that resizes and repositions my browser window,
>it sounds like I might be out of luck... don't suppose there's any way to
>get around this .. ?
></quote>
>
>Now to be fair, I have slightly changed my homepage.. the moveTo function is
>now set to "moveTo((window.width-800)/2,(window.height-600)/2);".  However,
>it seems I was correct in thinking that IE would block my attempts to resize
>the window, so now I either cannot open IE at all because IE closes itself,
>or, if I mess with things a bit, I receive a message in the notification bar
>that tells me it won't run my script commands.  At that time, I have to
>click on the notification message, click Allow this behaviour (or
>something), then click the OK button on a confirmation message asking if I
>really want to allow the behaviour.
>
>Please tell me there is a way I can set this particular string of javascript
>or maybe a local .html file as trusted so I won't have to click 3 times just
>to load my homepage everytime I open IE (which is a LOT as I use it for both
>work and play)...
>
--