-1

I want to link HTML pages which I can show it directly on my webpage rather than creating a link.

Please suggest me how could I arrange it.

  • 3
    Welcome to SO! Please add more details to your question, like what you are trying to achieve? What is the usecase? That way we can explain/answer in a better way. *Also, please share these details in question and not in comment.* – Rajesh Dec 19 '18 at 09:41
  • This is not related to Java. – Patrick Dec 19 '18 at 09:52
  • #Rajesh, I want to load pages from different .html files located in my folder. For which I was using – Abhishek De Dec 19 '18 at 14:05

2 Answers2

4

If I understand your question correctly it seems that you should be able to use Iframes to solve that.

<iframe src="https://www.exampleURL.com"></iframe>

More info can be found https://www.w3schools.com/tags/tag_iframe.asp

Adam Lagevik
  • 673
  • 1
  • 7
  • 15
  • 1
    Please explain your approach. An answer should address reason and sample. Just sharing a link with syntax is not a good answer – Rajesh Dec 19 '18 at 09:43
  • 2
    Please don't use or recommend or link to w3schools. –  Dec 19 '18 at 09:44
  • @JO3-W3B-D3V Please maintain SO's discipline. Comments are for queries/suggestions but the tone should be maintained. If you think something is wrong, highlight it, so that fellow devs and OP can learn from it – Rajesh Dec 19 '18 at 09:46
  • is creating a box like structure that I don't want, how can I remove the box, if you can help me out that will be very helpful for me? – Abhishek De Dec 19 '18 at 14:09
  • add frameBorder="0" to the iframe as a property like this – Adam Lagevik Dec 19 '18 at 21:19
  • @AdamLagevik, thank you for your help. As I want to use but clicking the links on the header & footer it is opening in the – Abhishek De Dec 20 '18 at 15:57
0

You can use iframe tag in order to embed other websites into your own site.

However, please consider that this method has many vulnerability and is risk to use.

See this additional information.

Cross Frame Scripting

Why are iframes considered dangerous and a security risk?

holydragon
  • 6,158
  • 6
  • 39
  • 62