Browsing 1 link and out another tabs with different links - javascript

I want to write codes in my blogger to show when I browsing link likes www.12345.blogspot.com(example) ,after loading inside ,it will auto out anothor tabs in browser to run links which set by me.
So, example is i typing link of www.12345.blogspot.com and press enter to browse and will out another tabs likes www.youtube.com ,the focus point in webpage still in first (www.12345.blogspot.com).
Any codes could write about what I describe? Sorry for my bad english

If I understand you correctly, when loading a website, you want to open a second website in a separate tab while maintaining focus on the first tab. Here's how you'd do it:
var w=window.open("https://google.ie");
if(w)w.blur();
I would, however, advise very strongly against doing this.

Related

Printing a browser page that is not open (Javascript and/or Jquery)

I'm wanting to be able to theoretically pass a URL to a window.print() (yes I know you cannot pass a url to this function) via a button. Then the print window would pop up with a page/article that you are not currently on in the browser.
For example: Let's say I am on Facebook.com and I have a share button for an article that pops up on Facebook.com. Lets say that when you click share, there is a print button that when clicked it will print the article (let's say this article is google.com for example). When I am on Facebook.com I want to be able to print Google.com using that share button WITHOUT having to even go to the website/page Google.com.
Is this something that is possible with javasript/Jquery. I have been doing a lot of research into it but not finding anything that would fit this criteria.
Thank you for your help!
I have tried setting up a jquery function that takes in a doc url and print the window but it continues to print the current page that I am on.
I have tried doing a lot of research on the idea but am continuing to see problems where people are only trying to print the page that they are currently on.
It is always possible if you work on it, with a little bit of creativity.
I imagine you can fetch the content of the page through iFrame element, keep the element hidden and then print the content of it.
Found that Link that might help you

Open List of URLs in Different Tabs and Click Same Button

I'm totally new to this but looking for a solution. I have a list of 50 unique URLs that I need to open in individual Chrome tabs and then click the same button twice on that page. The first prompts a popup for the second. Is this possible? Thank you!
If this is within the browser you may want to look into userscripts. However, if it isn't then you should update your tags to include shell scripting.
Without any code or some more information on your application its hard to say.

Can you make an html link that does not let you click back to previous page, or show the previous link in your history?

I am working on a client site where the client has requested that there be a button (basic a link) that links to another page like google, in case an abusive significant other busts into the room while a woman is reading about how to get assistance. The tricky part is that I am trying to figure out to link to a page that will open int he same windows, but no let you go back to the site by clicking the browser's back button, or show up in "history". I have built a lot of website and never heard of this being possible without the use of a custom browser extension or something.
My question is ..
Is there a way to do this? Possible some JS magic? Just wondering
You're looking for location.replace().
<button onclick='location.replace("https://www.google.com");'>Click to close</button>
Instead of creating a new entry in browser history, it replaces the current one.
Note: Unfortunately, it's blocked by [SO]. But just try it in your app. It does work.
Second note: If you combine this with initially opening the to be hidden page in a new tab (target="_blank") => no history.
However, the best method and advice for such cases is browsing in incognito: Ctrl+Shift+N. Once closed, it's gone, with all history in the session. Pressing Ctrl+Shift+T in a new browser window won't bring the formerly opened tabs back.
IMHO, this technique should be clearly detailed in the "Precautions" section of your client's website, also advising on having another "normal" browsing session opened in a background browser window, with a few neutral tabs open on subjects that wouldn't raise any suspicions: cooking recipes, things for children, cosmetics, etc...
I am not sure about your question.
But on click you can open Iframe
<iframe src="www.google.com" style="border:none;"></iframe>

Auto click on element after page load

I want to make a link to the following web page http://www.iph-hannover.de/de/iph/mitarbeiter but after it opens an auto click on one of the member's pictures should be generated.
So after clicking the link it should load the page and popup the window of one of the members as if I clicked on his profile with the mouse.
Note that I can not change anything on the http://www.iph-hannover.de/de/iph/mitarbeiter webpage. I can only link to it.
My basic html knowledge is all about making text bold/italic/colorful and creating hyper links with "a href". So please more detailed answers.
Thank you!
Basically, you can't do this.
If you can't change anything on the mitarbeiter page then there's nothing you can do about how the page opens. There's lots of easy ways to send information from one page to another, but that doesn't help anything when you can't make the mitarbeiter page "respond" to the information you want to send.
(when I say "information" then I really mean 'any' kind of data that the receiving page can act on, like a "open Prof. Peter Nyhuis on load" kind of message)

How do pageActions and browserActions differ?

I'm a writing a chrome extension that allows users to do the following:
Load data into the popup when the icon is clicked
Change the data in the popup based on actions the user takes on the page
Append elements to the DOM of the page based on actions taken in the popup
It seems that I can accomplish 1 with a script in the browser_action field of the manifest, but perhaps I need a page_action script for 2 and 3?
The core of the problem is that I do not know exactly how browser_actions and page_actions differ from each other. My limited understanding is that page actions allow data populated in the popup to be manipulated dynamically. Is this true? I cannot find an explanation about the differences that makes sense to me.
Browser Action is a type of extensions that use icon on the right of address bar. You click on that icon and popup page is loading. Those extensions work regardless of page currently opened.
Page Action only works while certain webpage(s) is opened. It displays as an icon inside the address bar (near page URL). This is for extensions only working on certain websites.
If you want to make your extension working on every website, you should use browser_action.
For further information you may want to visit these pages:
http://developer.chrome.com/extensions/browserAction.html
http://developer.chrome.com/extensions/pageAction.html

Categories

Resources