How to open iframe link in new tab or window
I am using some iframe tags in my html page as shown below:
<TABLE border="0" width="900">
<tr valign="top">
<td width="300" ALIGN=center>
<iframe src='http://www.apple.com/in/' frameborder = 0, height=250, width = 300 > </iframe><br>
</div>
</td>
<td width="300" ALIGN=center>
<div class="item_list">
<iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID-137232779171598318' frameborder = 0, height=250, width = 300 base target="_blank" > </iframe></a><br>
</div>
</td>
<td width="300" ALIGN=center>
<div class="item_list">
<iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID- 137232785207215857' frameborder = 0, height=250, width = 300 > </iframe>
<br></div>
</td>
</tr>
</TABLE>
Now what i need , is to open the link which is inside in iframe to new tab or window. I have used below script regarding this, but no luck.
<SCRIPT LANGUAGE="JavaScript">
function goNewWin() {
//***Get what is below onto one line***
window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1,
location=1,directories=1,status=1,menubar=1,
scrollbars=1,resizable=1');
//***Get what is above onto one line***
self.close()
}
</SCRIPT>
can anyone suggest me any solution for this?
javascript html iframe tabs hyperlink
add a comment |
I am using some iframe tags in my html page as shown below:
<TABLE border="0" width="900">
<tr valign="top">
<td width="300" ALIGN=center>
<iframe src='http://www.apple.com/in/' frameborder = 0, height=250, width = 300 > </iframe><br>
</div>
</td>
<td width="300" ALIGN=center>
<div class="item_list">
<iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID-137232779171598318' frameborder = 0, height=250, width = 300 base target="_blank" > </iframe></a><br>
</div>
</td>
<td width="300" ALIGN=center>
<div class="item_list">
<iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID- 137232785207215857' frameborder = 0, height=250, width = 300 > </iframe>
<br></div>
</td>
</tr>
</TABLE>
Now what i need , is to open the link which is inside in iframe to new tab or window. I have used below script regarding this, but no luck.
<SCRIPT LANGUAGE="JavaScript">
function goNewWin() {
//***Get what is below onto one line***
window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1,
location=1,directories=1,status=1,menubar=1,
scrollbars=1,resizable=1');
//***Get what is above onto one line***
self.close()
}
</SCRIPT>
can anyone suggest me any solution for this?
javascript html iframe tabs hyperlink
try parent.window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1, location=1,directories=1,status=1,menubar=1, scrollbars=1,resizable=1');
– lv0gun9
Sep 25 '13 at 3:39
@Iv0gun9 it's not working any other alternative
– puneetjava
Sep 25 '13 at 6:07
Check [this][1] solution, hope it helps [1]: stackoverflow.com/questions/4583792/…
– Pal Singh
Sep 25 '13 at 6:16
add a comment |
I am using some iframe tags in my html page as shown below:
<TABLE border="0" width="900">
<tr valign="top">
<td width="300" ALIGN=center>
<iframe src='http://www.apple.com/in/' frameborder = 0, height=250, width = 300 > </iframe><br>
</div>
</td>
<td width="300" ALIGN=center>
<div class="item_list">
<iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID-137232779171598318' frameborder = 0, height=250, width = 300 base target="_blank" > </iframe></a><br>
</div>
</td>
<td width="300" ALIGN=center>
<div class="item_list">
<iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID- 137232785207215857' frameborder = 0, height=250, width = 300 > </iframe>
<br></div>
</td>
</tr>
</TABLE>
Now what i need , is to open the link which is inside in iframe to new tab or window. I have used below script regarding this, but no luck.
<SCRIPT LANGUAGE="JavaScript">
function goNewWin() {
//***Get what is below onto one line***
window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1,
location=1,directories=1,status=1,menubar=1,
scrollbars=1,resizable=1');
//***Get what is above onto one line***
self.close()
}
</SCRIPT>
can anyone suggest me any solution for this?
javascript html iframe tabs hyperlink
I am using some iframe tags in my html page as shown below:
<TABLE border="0" width="900">
<tr valign="top">
<td width="300" ALIGN=center>
<iframe src='http://www.apple.com/in/' frameborder = 0, height=250, width = 300 > </iframe><br>
</div>
</td>
<td width="300" ALIGN=center>
<div class="item_list">
<iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID-137232779171598318' frameborder = 0, height=250, width = 300 base target="_blank" > </iframe></a><br>
</div>
</td>
<td width="300" ALIGN=center>
<div class="item_list">
<iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID- 137232785207215857' frameborder = 0, height=250, width = 300 > </iframe>
<br></div>
</td>
</tr>
</TABLE>
Now what i need , is to open the link which is inside in iframe to new tab or window. I have used below script regarding this, but no luck.
<SCRIPT LANGUAGE="JavaScript">
function goNewWin() {
//***Get what is below onto one line***
window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1,
location=1,directories=1,status=1,menubar=1,
scrollbars=1,resizable=1');
//***Get what is above onto one line***
self.close()
}
</SCRIPT>
can anyone suggest me any solution for this?
javascript html iframe tabs hyperlink
javascript html iframe tabs hyperlink
asked Sep 25 '13 at 3:27
puneetjava
772620
772620
try parent.window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1, location=1,directories=1,status=1,menubar=1, scrollbars=1,resizable=1');
– lv0gun9
Sep 25 '13 at 3:39
@Iv0gun9 it's not working any other alternative
– puneetjava
Sep 25 '13 at 6:07
Check [this][1] solution, hope it helps [1]: stackoverflow.com/questions/4583792/…
– Pal Singh
Sep 25 '13 at 6:16
add a comment |
try parent.window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1, location=1,directories=1,status=1,menubar=1, scrollbars=1,resizable=1');
– lv0gun9
Sep 25 '13 at 3:39
@Iv0gun9 it's not working any other alternative
– puneetjava
Sep 25 '13 at 6:07
Check [this][1] solution, hope it helps [1]: stackoverflow.com/questions/4583792/…
– Pal Singh
Sep 25 '13 at 6:16
try parent.window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1, location=1,directories=1,status=1,menubar=1, scrollbars=1,resizable=1');
– lv0gun9
Sep 25 '13 at 3:39
try parent.window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1, location=1,directories=1,status=1,menubar=1, scrollbars=1,resizable=1');
– lv0gun9
Sep 25 '13 at 3:39
@Iv0gun9 it's not working any other alternative
– puneetjava
Sep 25 '13 at 6:07
@Iv0gun9 it's not working any other alternative
– puneetjava
Sep 25 '13 at 6:07
Check [this][1] solution, hope it helps [1]: stackoverflow.com/questions/4583792/…
– Pal Singh
Sep 25 '13 at 6:16
Check [this][1] solution, hope it helps [1]: stackoverflow.com/questions/4583792/…
– Pal Singh
Sep 25 '13 at 6:16
add a comment |
1 Answer
1
active
oldest
votes
I think you're trying to just open a new page in a new tab. If so, here is the code you need:
<a href="WebAdress.netdom" target="_blank"><button>Open New Tab</button></a>
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f18995704%2fhow-to-open-iframe-link-in-new-tab-or-window%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I think you're trying to just open a new page in a new tab. If so, here is the code you need:
<a href="WebAdress.netdom" target="_blank"><button>Open New Tab</button></a>
add a comment |
I think you're trying to just open a new page in a new tab. If so, here is the code you need:
<a href="WebAdress.netdom" target="_blank"><button>Open New Tab</button></a>
add a comment |
I think you're trying to just open a new page in a new tab. If so, here is the code you need:
<a href="WebAdress.netdom" target="_blank"><button>Open New Tab</button></a>
I think you're trying to just open a new page in a new tab. If so, here is the code you need:
<a href="WebAdress.netdom" target="_blank"><button>Open New Tab</button></a>
edited Aug 18 '15 at 21:00
Nathaniel Ford
13.4k145372
13.4k145372
answered Aug 18 '15 at 20:40
Luke Dyte
34
34
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f18995704%2fhow-to-open-iframe-link-in-new-tab-or-window%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
try parent.window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1, location=1,directories=1,status=1,menubar=1, scrollbars=1,resizable=1');
– lv0gun9
Sep 25 '13 at 3:39
@Iv0gun9 it's not working any other alternative
– puneetjava
Sep 25 '13 at 6:07
Check [this][1] solution, hope it helps [1]: stackoverflow.com/questions/4583792/…
– Pal Singh
Sep 25 '13 at 6:16