System.Windows.forms.WebBrowser (For error see screenshots)

See code below for opening a radio station from maxscript.

Problems have been attached as images. And the website I'm trying to open is:

I'm sure it's something to do with .ObjectForScripting but I'm not sure how to implement that.

rollout webbrowser_rollout "Radio" width:380 height:685
edittext edt_url "URL:" text:""
dotNetControl wb "System.Windows.forms.WebBrowser" pos:[0,22] width:380 height:685
fn openURL urlString = (
wb.url = dotNetObject "System.Uri" urlString )
on edt_url entered txt do openURL txt
on webbrowser_rollout open do
--wb.ScriptErrorsSuppressed = true;
--wb.ObjectForScripting = true
openURL edt_url.text
wb.ScrollBarsEnabled = false;
wb.AllowNavigation = true;
createdialog webbrowser_rollout
script_error_1.jpg35.58 KB
script_error_2.jpg42.43 KB