If the point is to display random webpages within your own, why not use an
<iframe>? That's what they're for.
If you incorporate someone else's page inside of your own verbatim, then, if said page has <script> elements on it, then whoever owns that page gains the ability to run arbitrary scripts in your own domain's browser context — remember that the owners of the website serving that page can change the contents of that page any time they want — meaning they can call your javascript functions with whatever arguments they want, read your cookies, and thus masquerade as and do anything that your own javascript can do. Which then means you either have to
- set things up so that your own javascript and your browser context can't actually do anything (in which case what is it you need javascript for in the first place, apart from incorporating the page?), or
- you have to parse their page and get rid of their <script> tags.
This is all before we get into how you're incorporating the page.
What is it you're actually trying to do?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.