How to get a list of links on a webpage!
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
you will obviously need a webbrowser, also you will need a button for finding links, textbox, and finally a label to count how many links there are!
put this under the button1 click event
button1_clickevent
put this under the button1 click event
button1_clickevent
Code: Select all
How could this serve any use? well you can kind of make this like a online antivirus by trying to find any malicious sites that have been reported in the past.
Dim a As Integer
Dim b As String
For a = 1 To WebBrowser1.Document.Links.Count - 1
b = b & WebBrowser1.Document.Links(a).InnerHtml & vbCrLf
Next
TextBox1.Text = b
Label1.Text = WebBrowser1.Document.Links.Count & " links."
End Sub
------------------------------------------------------------------------------
Proprogrammer, not just a Programmer.
Proprogrammer, not just a Programmer.
It is nice ...
But look, you can't get every link with "a" tag, some links start with for example "<img" - button link and many more other tags can be
But nice tutorial
But look, you can't get every link with "a" tag, some links start with for example "<img" - button link and many more other tags can be

But nice tutorial
The A tag is the only one that allows hyperlinking so I think this article is quite accurare.
Yes M1z23R, Img can be hyperlinked, but using this code:
<a href="blah.com"><img src="awsomeface.png"/></a>
Well, to my knowlage :P
<a href="blah.com"><img src="awsomeface.png"/></a>
Well, to my knowlage :P
What's wrong with you? You copied all your "tutorials" from http://www.reflectionforbrain.com , and why don't you give the credits to that great site?
look people i dont copy my tuts from that site all the time i just had all the tuts on a .txt so i dont remember where my tuts come from, so sorry i didnt give credit cause i forgot about that sites name, cause i dont bookmark that kind of stuff, so i am not trying to say it is mine, sorry.
------------------------------------------------------------------------------
Proprogrammer, not just a Programmer.
Proprogrammer, not just a Programmer.
Well thats a bad start, to just copy codes. You didn't say that this is yours, but you didn't say that its not yours.
You know, when you actually do make your own app that is cool, i don't think people will believe its yours or its your code.
It's just a tip, either you learn from it, or you will get haters.
You know, when you actually do make your own app that is cool, i don't think people will believe its yours or its your code.
It's just a tip, either you learn from it, or you will get haters.
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
K thanks i wont do that anymore!
------------------------------------------------------------------------------
Proprogrammer, not just a Programmer.
Proprogrammer, not just a Programmer.
seems you've collected haters already
but either way its nice i suppose
but either way its nice i suppose
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

Hey all
Have you all forgotten the "REP" System that we have had in Place for like 8 months
I keep having to REPEAT this *Please USE the REP System instead of Posting Comments that are Spoiling the Posts/Threads...
That way You could at least give the Poster a Chance to EDIT the Post without the need to Diss People and leave it all on show for Our/New Members to read.
Chris
Have you all forgotten the "REP" System that we have had in Place for like 8 months

I keep having to REPEAT this *Please USE the REP System instead of Posting Comments that are Spoiling the Posts/Threads...
That way You could at least give the Poster a Chance to EDIT the Post without the need to Diss People and leave it all on show for Our/New Members to read.
Chris
Copyright Information
Copyright © Codenstuff.com 2020 - 2023