Open link in same browser tab

前端 未结 2 376
面向向阳花
面向向阳花 2020-12-22 04:01

How do I open a link in the same browser tab? I tried this code:

ShellExecute(Handle, \'open\', \'http://site.com\', \'_self\', nil, SW_SHOWNORMAL);
<         


        
2条回答
  •  一整个雨季
    2020-12-22 04:32

    A possible entry point is using OLE Automation. Using this technique you can connect with any existing instance of MSIE, so that you can bring the current browsing window to a new url.

提交回复
热议问题