By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,890 Members | 1,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,890 IT Pros & Developers. It's quick & easy.

WebBrowser Name

P: n/a
When your using JavaScript in an IE window (WebBrowser)
you can return or set the name of the window using the

<script type="text/javascript">"New Name";
alert (;

Is it possible to-do the same thing in VB.NET?

I'm not sure, but you might be able to use...


NOTE: Already posted in
microsoft.public.inetsdk.programming.webbrowser_ct l, but
no reply, if a solution is found then I will also post in
there (as I hate finding when other people have a
problem, but the solution wasn't printed)

Thanks in Advance
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Hi Craig,
I think not, this is Client side.
And with you are mostly working on the serverside.
So what you can do is past a piece like this in your aspx file
Or just send a page with a message label (Or another control) back.
I hopes this helps a little bit,

ps. the browser class is for browsing like IE with a window form.
Nov 20 '05 #2

P: n/a
Hi Craig,
I think it can be done like this,
I think there must be a better way to transport the name to the client page.
But I could not find it.
If you find it, tell us please.
<script type="text/javascript">'label1').innerText;
alert (;
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.Label1.Text = "The first text"
End Sub
Private Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Label1.Text = "A new text"
End Sub
End Class

Funny excercise
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.