Embedding Twitter Timeline - Links to open in a new page - html

Is it possible to get the embedded timeline to open links in a new page?
This is what I got from twitter to copy and paste into my page and it works great, but I would like it to open links in a new page, not the same page.
<a class="twitter-timeline" href="https://twitter.com/GraftonMedical" data-widget-id="414828595198951424">Tweets by #GraftonMedical</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

If you want to open link in a new page just add to "a" tag:
target="_blank"
...if you meant on that.

Related

why can't you write some code that opens all links in a new tab?

Why do we have to write Visit link?
Or for instance, in markdown, why do we have to write link, and in that there is no way to open a new tab unless you use HTML.
So why isn't there a solution so that all links in markdown pages open in a new tab?
Thank you.
adding the target="_blank" attribute to your anchor tag will open the link in a new tab if that's what you're after.
<a src="www.google.com" target="_blank">Link</a>

Issue in opening some links in new tab

Whenever I place target="_blank" in my HTML code to open it in a separate tab it opens but does not open the content in the link but automatically redirects to the main page?
Can anyone help with this?

How do I force an html file to open in the browser instead of downloading? (Classic Google Sites)

I'm using classic google sites and uploaded an html file. However, when I click on the link instead of opening directly on a new tab it tries to download it. So, how can I force that by clicking the link it opens directly in the browser?
Link location:
http://www.rodriguesloures.com/econometrics.html?attredirects=0&d=1
Code:
<div style="vertical-align:middle"><img alt="" src="https://sites.google.com/site/arloures/julia-language.png" style="vertical-align:middle" title="julia" width="25" height="25" border="0"> Applied Econometrics using Julia</div>
Thanks for you feedback!
Alexandre
You probably generated your html file with PANDOC and uploaded it to your site as page attachment (using Add file link). Google treats all attachments as files for download only.
What you can try to do is:
create a new page called econometrics for example
at the new page's EDIT pane click <html> button, Edit HTML popup window should be open now
Paste your entire HTML content into text area and hit update button
Now, all links to this page will open your HTML and not download it

Google Widget Links

I am working on a widget for a google site and I've run into this little problem. If I have a html link Home and an user clicks on the link it will open inside the widget itself, but if my html is Home it will open a new link inside of the browser, is there a way to navigate inside the browser, not the widget?
Using target="_parent" will solve the problem.

PDF in iframe doesn't reload when I click a link to another page of the PDF

I have an iframe in my page in which I display a PDF.
<iframe src="test.pdf#page=1&view=FitH,0&zoom=200&toolbar=1&navpanes=0" id="iframe"></iframe>
Somwhere else on the page I have a link to another page of the same PDF like this:
<a target="test.pdf#page=2&view=FitH,0&zoom=200&toolbar=1&navpanes=0">pdf page 2</a>
But when i click the link, nothing happens. If I put another link in like google or another page from my site, these links open just fine.
But if I first click a link (targeted to the iframe) to another page (e.g. google or index.html) and then I click on the link to page 2 of the PDF, it realods like I want it to: It opens page 2 of the PDF in the iframe.
How can i make the links to other pages of the PDF open in the iframe without first opening another link.
P.S.
The link to the pages are just temporary. In the end i want the links to go to certain chapters in the PDF.
Thanks in advance
The target should be the name of the frame that will load the new item, and the href should specify what to load. For example:
<iframe src="http://www.irs.gov/pub/irs-pdf/fw4.pdf" id="iframe"></iframe>
pdf page 2
Try that and see if that's what you're looking for.
You need to first erase the src and reload the same pdf file with the new page number. However a little delay of at least 50ms is required
document.getElementById("iframe").src ="";
setTimeout(function()
{document.getElementById("iframe").src = "Your.pdf#page=255&zoom=95&pagemode=none"}, 50);