Show popup and redirect to the link - javascript

I have been looking in too many links but I am not getting the desired results, although it is a very basic question to ask but i am unable to find some useful help.
I have a hyperlink pointing to the external link like google,
Now I want to show a popup when somone clicks on this link, I can fire up a jquery modal or fancybox on onclick event, thats not the problem.
I assume that it is not possible to show my own window on external link?
I need to fire up a modal and after closing of modal, the external link should be opened in new tab.Thanks for help.
I don't know what code to share here as i have only hyperlink

If I am getting you right, solution
in your home page add the link to the popup window
Open
in the popup window add the following link
<a href='http://google.com' onclick='window.close();' target='_blank'>LINK</a>
if it is not what you want, I hope it is a starting point to the solution

Related

How to create a link that displays the page in your website instead of routing to the URL link?

Lets say hypothetically I want to display in my website a page from another website(Twitter/Instagram/ect..). Is there any possible way where I could.... Click the link and display the content in my own website page without having to redirect to Twitter/Instagram/google ect... Like maybe in a popup modal or something without having to open another browser window? If any one knows if this is possible please let me know. Thanks.

Webhelp window in Robohelp doesn't get focused

I am using trail version of RoboHelp 2015, I have few issues when I open web-help popups from the links in webpage.
I click on help on page, which opens a web-help as a popup or new tab with focus on it. In the a scenario I keep that window open and navigate back to main website and do some work and in some other page I click help which loads respective content to that window but doesn't get focused.
Help would be appreciated.
I am not sure how you have integrated webhelp in your web pages.
If you are using RoboHelp_CSH.js then you may need to modify
window.open(... , "__webCshStub", sParam);
to
window.open(... , "__webCshStub", sParam).focus();
or something like as suggested in set the focus of a popup window everytime
You can also log a case # https://helpx.adobe.com/tech-comm-suite/customer-support.html
Thanks
Amit Jha

Button with dual function: Open a link in a _blank window, plus a different link in _self

Is this possible at all? I'm building a simple Facebook app and want a button to load an external link in a _blank window, while the next page of the app loads in the _self window. I'm very much a novice at JavaScript, so any help/advice would be very much appreciated!
Add a click event listener to your button that executes the following lines:
window.open('http://www.example.org/external_link.html', 'New Window');
window.location.href = 'http://www.example.org/internal_link.html';
The first line might get blocked by some popup blockers but let's give it a try.

open pop up after clicking bookmark link

I am working on a short application. In which I have followiing things.
move a link something from my page to Bookmark Toolbar of Browser- Done.
After clicking on the bookmark link pop should open. (user can be at any other website). he will click on the bookmark link and then pop up should open -- NOT DONE
that pop should fetch the title,meta,description of parent window (users current opened website).--DONE
Obviously My question is about 2 Point. I cant figure out how to make this bookmark link to an absolute css/javascript so that it can open on any website.
You can add javascript to URLs like so:
Bookmarklet
Note that I have prepended the URL with javascript: to indicate the browser that it should execute the URL as javascript.
So for a pop it would be something like:
Bookmarklet
Here is a jsFiddle with the code above for you to test.
For more information about bookmarklets you might like the following article: http://betterexplained.com/articles/how-to-make-a-bookmarklet-for-your-web-application/

solution for popup page as modal

I was using window.showModalDialog() but doesn't work on all browsers.
People recommends me jquery, thickbox and also this contact Example
but the problem is when i submit the page, server will send me another page, and that page will replace my original page!
so actually it doesn't fulfill my requirement.
My requirement is on button click modal page should open and it can redirect to other page on same window without disturbing my original page and when I close My original page get reflections.
So is it possible?
Sounds like you need a simple html target="_blank" in the link to the other page.
http://www.htmlcodetutorial.com/linking/_A_TARGET_95y98y108y97y110y107y.html

Categories