How to use Jscript with VB

  • Thread starter Thread starter Stephen
  • Start date Start date
S

Stephen

I am working on a web form that requires me to open a new
window. I can do it with just embedding the jscript in the
html but is there a way to do by embedding the jscript in
the code-behind with the vb code.
 
Hi Stephen,

\\\
Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///

I hope this helps a little bit?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top