+ 1
For example i have created a button and i want to add a content or page in this button so what i do??
12 odpowiedzi
+ 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.
+ 2
Good luck 👍
+ 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.
+ 2
Aymane Boukrouh then it needs JS to achieve ..😬
+ 1
Okk
+ 1
Here an example of button click trigger a page load.
https://code.sololearn.com/WP08yHQR3V0g/?ref=app
+ 1
Syed Arsalan here you go, trigger page without JS.
https://code.sololearn.com/W3UEiu0SJBd6/?ref=app
0
Is it possible without JS?
0
Can this same effect be achieved with Python?
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>
0
Thnx
0
I don't want to add new things