+ 1
Min Yoongi Instead of creating every page with javascript using document.write, try using js/css to control div visibility. It's much simpler. --edit-- added horizontal swipe page change for touchscreen devices. https://code.sololearn.com/W49s4LW246xd/?ref=app
21st May 2023, 10:44 AM
Bob_Li
Bob_Li - avatar
+ 8
You can use onclick attribute and write the link whatever you want to open on clicking the button
18th May 2023, 4:00 PM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 6
Look at this way: <button onclick=location.href=“https://sololearn.com”>Click me!</button> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ We use onclick event to open other web page using a button.
18th May 2023, 4:07 PM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
+ 4
Look at self.document.write There you can write the html code of the second window Use <style> tag for css
18th May 2023, 4:49 PM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
+ 3
Min Yoongi Use class or id to add css HTML: <button class=“but”>Click me!</button> CSS: .but { width: 60%; height: 20%; color: white; border: 2px solid white; background-color: black; }
18th May 2023, 4:10 PM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
+ 2
Spartan Junior dont answer a question to ask other question And complete sololearn's html course to do what you want.
20th May 2023, 8:33 AM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
+ 2
Okay sir
20th May 2023, 8:33 AM
Spartan Junior
Spartan Junior - avatar
+ 1
button Đ”Ń‚ĐŸ ĐșĐœĐŸĐżĐșа
19th May 2023, 6:41 PM
KIDS ALL KIDS
+ 1
Can someone teach me how to create a website using html
20th May 2023, 8:31 AM
Spartan Junior
Spartan Junior - avatar
+ 1
You can also use Form tag <form action=" link of the page" > <button >Click Me </button > </form>
20th May 2023, 12:31 PM
Jeevan Sagar
Jeevan Sagar - avatar