+ 1

For example i have created a button and i want to add a content or page in this button so what i do??

23rd Feb 2020, 5:02 AM
Syed Arsalan
Syed Arsalan - avatar
12 Réponses
+ 4
I answered you already in your other post, but here is my answer again: Syed Arsalan it requires JavaScript. Finish HTML & CSS first before moving on. You will learn all this as you go deeper in the course. Don't rush it, or you'll end up confusing things.
23rd Feb 2020, 5:04 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Good luck 👍
23rd Feb 2020, 5:05 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Calviղ I edit my answer for a moment, but then removed the edit. I think what he wants is to add new things, and not just hide & show previously made elements.
23rd Feb 2020, 6:25 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Aymane Boukrouh then it needs JS to achieve ..😬
23rd Feb 2020, 6:27 AM
Calviղ
Calviղ - avatar
+ 1
Okk
23rd Feb 2020, 5:05 AM
Syed Arsalan
Syed Arsalan - avatar
+ 1
Here an example of button click trigger a page load. https://code.sololearn.com/WP08yHQR3V0g/?ref=app
23rd Feb 2020, 5:28 AM
Calviղ
Calviղ - avatar
+ 1
23rd Feb 2020, 6:18 AM
Calviղ
Calviղ - avatar
0
Is it possible without JS?
23rd Feb 2020, 5:29 AM
Syed Arsalan
Syed Arsalan - avatar
0
Can this same effect be achieved with Python?
23rd Feb 2020, 1:21 PM
Stan Berger
Stan Berger - avatar
0
Without using the same page: 1) You can style a link to make it look like a button. 2) Add backend (use PHP or your preferred) using MVC architectural pattern or your preffered. 3) For something simple, you can use HTML/JavaScript like this: <button onclick="open_window();"></button> <script> function open_window() { var newWindow = window.open("", "nameOfPage"); var html = "<h1>Hello</h1>"; html += "<br>"; html += "<p style=\"color: #0000ff;\">This is a blue test</p>"; newWindow.document.write(html); } </script>
23rd Feb 2020, 2:09 PM
carlos mercado
carlos mercado - avatar
0
Thnx
24th Feb 2020, 1:56 AM
Syed Arsalan
Syed Arsalan - avatar
0
I don't want to add new things
24th Feb 2020, 3:39 PM
Syed Arsalan
Syed Arsalan - avatar