2011. 10. 24.

creating new internet explorer window by shell exec

If you want to create a new I.E window  not tab-window in program code.


In program code, 


ShellExecute(NULL, NULL, URL, NULL, SW_SHOW); //--> new tab  will be created.
ShellExecute(NULL,"open","iexplore",URL,NULL,SW_SHOW); // --> new window will be created.


// test in  I.E.  8.0.xxxx




ref : http://msdn.microsoft.com/en-us/library/windows/desktop/bb762153(v=vs.85).aspx

2011. 10. 10.

Removing javascript security warning of local html :MOTW(mark of the web)

When loading local html file, if  it has a script   IE shows the security warning bar( yellow bar).
It can be fixed by changing configuration.  but  I found another solution which  is provide by MS.

Mark of the Web  (MOTW)  :
 original link http://msdn.microsoft.com/en-us/library/ms537628(v=vs.85).aspx

Simply.   Just add  below line  at the top of html file.


< !-- saved from url=(0013)http://a.b.c -->

** 0013 means number of characters of follow url.

--- check position --

<!doctype html>
<!-- saved from url=(0013)http://a.b.c -->
<html>
  <head>
    <title>A Mark of the Web Example.</title>
  </head>
  ...