hy i want my program to open in webbrowser1 a webpage from a html code. i don`t know how to put the code in vb code. the html code isand i want to be like this :HTML Code:<SCRIPT type=text/javascript> id = 5406; width = 468; height = 60; border = "000000"; background = "000000"; link = "00FFFF"; text = "FFFFFF"; </SCRIPT> <SCRIPT src="http://web.to.ro/textad.js" type=text/javascript> </SCRIPT>Where i can learn to use this part ?VB Code:
Private Sub Form_Load() WebBrowser1.Navigate "about:" & _ "<html>" & vbCrLf & _ "<head>" & vbCrLf & _ "</head>" & vbCrLf & _ "<body>" & vbCrLf & _ "<p><a target=" & Chr$(34) & "_blank" & Chr$(34) & "href=" & Chr$(34) & _ "http://www.vbforums.com" & Chr$(34) & ">Visit My Site</a></p>" & vbCrLf & _ "</body>" & vbCrLf & _ "</html>" ' or load your ad page End Sub




Reply With Quote