Html frame | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Html frame

In HTML I want to make a button in addition to the action that opens a site, at the same time open another page, in different frames, how can I do?

28th Jan 2018, 10:13 PM
Zer0xF
Zer0xF - avatar
2 Answers
0
I didn’t exactly get what do you mean. But if you mean that you want to open 2 pages with one button in different frames when clicked. You can use javascript and add an eventlistener to capture the button click and then window.load to open the website you want. There is actually a lot of ways to do it with javascript, you just have to see which one will help you best. Hope this helps.
29th Jan 2018, 3:01 AM
Captain Object
Captain Object - avatar
0
JavaScript not yet know him well, you may make me an example?
29th Jan 2018, 6:35 AM
Zer0xF
Zer0xF - avatar