Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138163

How to force a hyperlink inside IFrame to open into a new window?

$
0
0

My code is pasted below:-

<!DOCTYPE html> 
<html> 
 <head>
<base target="_blank">
</head>
<body> 

<div style="border: 2px solid #D5CC5A; overflow: hidden; margin: 15px auto; max-width: 800px; max-height: 1750px;">
<base target="_blank" />
<iframe name="myIframe" scrolling="auto" src="http://example.com" style="border: 0px none; margin-left: -30px; height: 4000px; margin-top: -900px; width: 850px;">
</iframe>
</div>
</body> 
</html> 

I have tried with target attribute but it's not worked. Please help.


Viewing all articles
Browse latest Browse all 138163

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>