|
-
Aug 6th, 2012, 04:34 PM
#1
Thread Starter
Frenzied Member
embed javascript in page
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|