How to open link in new tab automatically in HTML or JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to open link in new tab automatically in HTML or JavaScript

I want to open two websites by just visiting one URL.. I want wen someone ope. my website the other website will automatically open in new tab.. Using JavaScript or HTML or jQuery... i can't use PHP on this site... because I'm using blogger... preventing it from being blocked by pop-up blockers... Or alternatively to show other site in the iframe of my website. with full width and some height... using hyperlink. https://www.redstar.cloudns asia/ this is the link i want to open in new tab or iframe. of my other site... I tried this. <iframe src="https://www.redstar.cloudns.asia/"> </iframe>. but it shows blank.. JavaScript or jQuery blocked by pop-up blocker... if you know the method of using PHP to show a pop-up in the website with the preview of my site. then tell me.. https://code.sololearn.com/W27KK23W7kgj/?ref=app i tried these all methods but jQuery blocked. and. iframe do not open without clicking link...

24th Jul 2018, 4:14 AM
C ++
C ++ - avatar
7 Answers
+ 2
src, not scr
24th Jul 2018, 6:54 AM
Calviղ
Calviղ - avatar
24th Jul 2018, 3:18 PM
C ++
C ++ - avatar
+ 1
Did you try the iframe specifying width and height?
24th Jul 2018, 4:36 AM
Lydzje
Lydzje - avatar
+ 1
yes i tried everything.. which i know...
24th Jul 2018, 4:56 AM
C ++
C ++ - avatar
24th Jul 2018, 5:13 AM
C ++
C ++ - avatar
+ 1
thanks but i write src in blogger but not working. i have found another way... I'll try it..
24th Jul 2018, 7:32 AM
C ++
C ++ - avatar
+ 1
thanks but i write src in blogger but not working. i have found another way... I'll try it..
24th Jul 2018, 7:32 AM
C ++
C ++ - avatar