Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21999

embed javascript in page

$
0
0
Embed a javascript code to the web browser page -

I have a web page that I created, and testing with vb6 to use the IE object. I want to insert this piece of code to the page, and let it alert, but it doesn't work. Is this possible?

Dim s as string
s= <script>alert('test');</script>
document.body.insertAdjacentHTML "afterbegin", s

Expected result is that I would like to get an alert.

Viewing all articles
Browse latest Browse all 21999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>