Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Tuesday, January 4, 2011

Javascript Tips : How to create a pop up window using javacript in a Button?

How to create a pop up window when someone click on a button?
Here's a simple code the way I made it..
============================ ==================================
<html>
<head>
    <title>How to create pop up window using java script in a Button</title>
    <script language="javascript" type="text/javascript">
        function popup()
        {
            // change with your target URL
            popwindow = window.open("http://diary-of-programmer.blogspot.com/");
            return false;
        }
    </script>
</head>
<body>
    <input type="submit" value="pop up" onclick="return popup()"/>
</body>
</html>

============================== ==================================
we create a javascript function that we called "popup()". The statement window.open(), accept url parameter.
and then to call the function we utilized the button's onclick event.

That's is my simple way to create a pop up function... if you find this post help you, please leave a comment bellow.

Thank you...

Wednesday, December 22, 2010

Basic Question : What is HTML?

If we talk about web, we could not forget about HTML. So, what is HTML?
HTML stands for Hyper Text Markup Language. It's the main markup language for the web pages.
HTML elements are consist of tags (a word surrounded by angle brackets < and >). The tags in HTML usually come in a pair (start/opening tag and end/closing tag) eg.: <html></html>, <b></b>, etc. HTML element also have properties that usually we called with attributes. For list of elements and elements attributes you can find it here or here.

Here's some of example of simple HTML document:
------------------------------------------------------
<!doctype html>
<html>
  <head>
    <title>Hello HTML</title>
  </head>
  <body>
    <p>Hello World!</p>
  </body>
</html>
---------------------------------------
I think that' is for today, I hope you'll find it helpful. 
Please leave a comment below
Thank you..

Finally, C# 9 record, the equivalent of Scala's case class

While C# is a wonderful programming language, there is something that I would like to see to make our life programmer easier. If you are fam...